Changing some permissions on the Sensor class to protected so that they can be inherited