Test script to simulate data from a sensor