Moved Arduino sensor script into file