keep in mind I have a software interrupt in Arduino which runs in the background every 50ms. I do not know if it is the interrupt causing the corrupted values or something e