added the code for the downstairs sensor