Code for RPi and Arduino for data measuring