emulator almost works (sends the same value all the time)