Arduino-compatible code for running the sensors