looking at your code, seems that might have a sync/async conflict. set() is calling async->spawn but get() is calling execSync() which will block. With a situation where you have reads and writes one of top of the other (such as a CLK/DATA pair of pins) have you run into an issue with the timing?