Boilerplate code for all sensors