Check these two posts (on same thread)
Link to my driver code is here: Mirroring Virtual Fan to Physical Fan Controller - #7 by jtp10181
Briefly explained how I mirrored from real device to virtual: Mirroring Virtual Fan to Physical Fan Controller - #2 by jtp10181