Added method to Sensor class to calculate the resistance of the sensor in a voltage divider circuit