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.

In shortA practical map of common sensors and how to connect them.

Theory in plain words

Sensor interfacesAnalog: LM35, LDR, thermistor, MQ gas (ADC)Digital pulse: HC-SR04, PIR, DHT22 (timing)I2C: BMP280, BME280, MPU6050, VL53L0X, SHT31SPI: MAX31855 thermocouple, ADXL3451-Wire: DS18B20
Sensor interfaces

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

Pick a sensor for your goalTry it Yourself

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).

Quick quiz

1. Which sensor measures temperature on 1-Wire?

2. How to reduce noise in readings?

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.