Reading memory is always safer than giving your program read AND write privileges. On other hand, it's a bit risky and would require too much work outside your field to accomplish.
You COULD make a emulator, that emulates threat levels and gives signals to your dongle thing? I guess you just need some numbers going up and down at certain pace.