Refactor Long if-else with inheritance
Create new  WindowSensor
Add another subclass of Sensor