sensor

a device that can react to light, heat, pressure, etc. in order to make a machine, etc. do something or show somethingsecurity lights with an infrared sensor (= that come on when a person is near them)