basic Sensor codes