how to make a sensor