How to add a sensor