tutorial to emulate the sensor