What is a sensor?

A sensor is a device that receives and responds to a signal

The signal is some type of energy for example heat,light,motion, or chemical.

A sensor detects a signal converts it in to a readable ouput signal.