Proximity sensor for HVAC systems