Home / Learn Chip Programming / Sensor Guide: Which Sensor, Which Interface
Sensor Guide: Which Sensor, Which Interface
A practical map of common sensors and how to connect them.
Theory in plain words
What it is
Sensors convert physical values (temperature, light, motion, gas, distance) to electrical signals: analog voltage, digital pulses or a bus (I2C/SPI/1-Wire).
Why we use it
Choosing the wrong sensor or interface wastes weeks. Knowing range, accuracy, voltage and bus saves projects.
How it works
Read the datasheet: supply voltage, interface, address, accuracy, response time. Calibrate when needed and filter noise with an average.
Where it is used
- Weather station, data logger
- Robots (distance, IMU)
- Smart home nodes
Sensor selector
Prices are rough Indian market figures for modules and change often. Always buy from a source that gives the real chip (BMP280 and BME280 clones are common).
- Filter noise: average 8 or 16 readings (shift by 3 or 4 instead of dividing).
- Calibrate: compare with a known reference and store an offset.
- Mind the voltage: 5 V sensor outputs can damage 3.3 V MCU inputs.
- Mind the response time: DHT22 needs 2 s between reads; thermocouples are slow.
- Power-up time: gas sensors warm up for minutes.
Quick quiz
1. Which sensor measures temperature on 1-Wire?
DS18B20 is a digital 1-Wire thermometer.
2. How to reduce noise in readings?
Averaging reduces random noise.
Common questions
Which sensor measures temperature on 1-Wire?
DS18B20. DS18B20 is a digital 1-Wire thermometer.
How to reduce noise in readings?
Average several samples. Averaging reduces random noise.