removed println's
added abstract Sensor class to save the day