By Output Signal
Continuous vs DiscreteThe nature of the electrical signal produced determines how a microcontroller interfaces with the sensor.
-
Analog Sensors: Output a continuous voltage or current directly proportional to the physical quantity (e.g., 0V to 5V). Must be converted to numbers by an Analog-to-Digital Converter (ADC). Examples: LDR, Thermocouple, LM35, Potentiometer.
-
Digital Sensors: Convert measured data internally into discrete binary numbers or packetized bus data (I2C, SPI, 1-Wire, UART). Highly immune to line noise and cable losses. Examples: DHT22, BME280, MPU6050, DS18B20.