A sensor is a device that detects physical parameter as input from the environment and responds accordingly.
It converts that physical parameter (for example: temperature, blood pressure, humidity, speed, etc.) into a signal which can be measured electrically (gives voltage). The specific input could be moisture, motion, light, pressure, heat etc.
We humans have 5 main senses that are vision, hearing, smell, touch and taste, our sensors include the eyes, ears, nose, skin and tongue respectively. As these sensors communicate with our mind let us know all the things same like this electronic sensor communicate with microcontroller or microprocessor.
Sensor is a device that converts a physical quantity into electrical quantity. Physical quantity like pressure, temperature, force etc.
The output of sensor is converted in human-readable value and display on screens and can be record in database for further processing.
Before we proceed further you should know the difference the sensors and transducers.
The main difference between sensor and transducer is that a transducer is a device which converts energy from one form to another, while sensor is a device which detects a physical quantity and converts the data into an electrical signal. Sensors are also a type of transducers.
There are two types of sensors
- Analog and
The sensors that produce continuous analog output signal these are considered as analog sensors. There are various types of analog sensors such as temperature sensors,moisture sensor, accelerometers, pressure sensors, light sensors, and sound sensors so on.
Sensors in which data conversion &transmission takes place digitally are called as digital sensors.
In digital sensors, the signal measured is converted into digital signal by sensor itself. And this digital signal is transmitted through wire digitally. Somehow it overcome disadvantages of analog sensors.
Examples of digital sensors are IR sensor, ultrasonic sensor, float sensor, moisture sensor etc.
Note: Few sensors were made particularly of digital types while few were made of analog types and many sensors can be used in digital and analog modes. So basically it depends on us in which mode we want to use them.
We can also convert analog readings into digital by the help of ADC (Analog to Digital) converter.