02.12.2026

warpva

Powering The Digital Era

How To Replace Old Sensors With New Ones

How To Replace Old Sensors With New Ones

That DHT11 in your drawer has had a good run. Meet the successors that are more accurate, draw less power, and stay calibrated longer.

Over the last 15 years, many inexpensive sensors have become extremely popular in hobby, educational, and embedded projects. Some of these sensors are still widely used, but newer devices are now available at prices ranging from comparable to several times higher (see the captions), offering better accuracy, stability, power consumption, integration, and, in some cases, improved safety. Let us look at some of these older sensors and the newer alternatives that can now be considered.

Humidity done right

DHT11, DHT22 sensors/SHT40, SHT41, HDC3020 and BME280

DHT11/DHT22 sensors have been widely used as temperature and humidity sensors for quite some time. The DHT11 has 4 legs, out of which 1 leg has no internal connection (NC). Inside, it has a capacitive humidity sensor and a thermistor-based temperature sensor, along with an internal signal-processing circuit, which makes it a digital, single-wire sensor externally. Its temperature accuracy is relatively poor, typically around ±2°C for the DHT11. The humidity reading is also relatively poor, particularly in terms of accuracy and repeatability. DHT22 is an improvement over the DHT11, with slightly better specified accuracy and resolution.

How To Replace Old Sensors With New Ones
(L to R) DHT11 = ₹51, SHT40 = ₹219

Newer sensors offer better-specified accuracy, repeatability, and stability, with specifications provided over defined temperature ranges, for a modestly higher price. The ones that could effectively replace them are Sensirion SHT40 and SHT41, HDC3020 and BME280. These are modern digital sensors; SHT40/SHT41 and HDC3020 use the I²C interface, while the BME280 supports both I²C and SPI. BME280 additionally measures barometric pressure, which is its main attraction.

Sound gives way to light

HC-SR04 sensor/VL53L0X sensor

HC-SR04 is an ultrasonic distance sensor. It measures the time taken by an ultrasonic sound pulse to travel to the object and return, and calculates the distance from the travel time. It can measure distances up to about 4 metres. However, its major limitation is that the velocity of sound in air is significantly dependent on temperature. Unless temperature compensation is incorporated in the software, the measured distance will therefore vary with ambient temperature. The sensor can work quite well in a controlled indoor environment, but in an open outdoor environment the reading can be affected by temperature, wind, humidity, and the nature of the reflecting surface.

(L to R) HCSR04 = ₹69, VL53L0X = ₹112

The newer sensor in this category is the VL53L0X, which uses infrared Time-of-Flight (ToF) technology and is considerably more compact and precise for short-range distance measurement. Instead of relying on the velocity of sound, it measures the flight time of infrared light emitted by its VCSEL – Vertical-Cavity Surface-Emitting Laser and reflected from the target. It communicates with the microcontroller over I²C and operates from approximately 2.6-3.5V. Its range is generally up to 2 metres, depending on the target reflectivity and operating mode. The chip itself offers only I²C, though some boards add serial and PWM outputs. Its big brother, the VL53L8CX, can measure up to 4 metres but is a little more costly.

Sharper eyes for motion

PIR sensor SR501/EKMC, EKMB sensor

The HC-SR501 sensor has been used for many years for detecting human motion, typically over a range of around 3m to 7m, and is widely used in confined spaces with applications such as automatic light switches and security systems. However, such inexpensive PIR modules often have limitations. They can sometimes be triggered by rodents and other small animals, and their sensitivity and time delay can be somewhat inconsistent. Environmental conditions such as sudden temperature changes, direct sunlight, hot air movement, and electrical noise can also result in unwanted triggering.

New sensors are Panasonic EKMC, EKMB (runs on battery) and STMicroelectronics STHS34. These newer sensors provide much better-defined and more consistent detection characteristics than the commonly used low-cost PIR modules. The Panasonic EKMC/EKMB devices are conventional pyroelectric PIR sensors, with the EKMB series specifically designed for very low power, battery-operated applications. EKMC/EKMB has a detection range of 5-12 metres.

The STHS34 takes a somewhat different approach. Rather than simply detecting a moving warm body, it senses changes in the long-wave infrared radiation field of its surroundings. It uses a thermopile-based infrared sensing element to detect variations in the infrared radiation arriving from objects and the background. It can therefore detect the presence of a warm object even when it is not moving.

(L to R) SR501 = ₹62, EKMC = ₹580, STHS34 = ₹929, EKMB = ₹1439

Breathe easy: No heater, no waiting

MQ2, MQ-135/SGP40, SGP41, SCD40, SCD41

EFY Icon

EFY++ CONTENT: ACCESS TO THIS CONTENT IS FREE! BUT YOU NEED TO BE A REGISTERED USER.

Oops! This is an EFY++ article, which means it’s our Premium Content. You need to be a Registered User of our website to read its complete content.

Good News: You can register to our website for FREE! REGISTER NOW

Already a registered member? If YES, then simply login to you account below. (TIP: Use ‘forgot password’ feature and reset and save your new password in your browser, if you forgot the last one!)

Copyright © All rights reserved. | Newsphere by AF themes.