Master the Basics: How to Measure Resistive Sensors
Share
Resistive sensors are a fundamental part of electronics, responding to changes in light, temperature, or physical deformation by altering their resistance. This guide explains how to measure resistive sensors and use them effectively with microcontrollers, making it easy for beginners to master this essential skill.
What Are Resistive Sensors?
Resistive sensors change their resistance based on the parameter they are designed to measure. Common examples include:

- Photo Resistors: Resistance changes with light intensity.
- Strain Gauges: Resistance varies with physical deformation.
- Thermistors: Resistance changes with temperature.
The Challenge: Microcontrollers and Resistance

Microcontrollers are not designed to measure resistance directly. However, they often include analog-to-digital converters (ADCs) that measure voltage. To measure a resistive sensor, you can use a simple circuit called a voltage divider to convert the sensor's resistance into a measurable voltage.
Measuring Resistance with a Voltage Divider

A voltage divider consists of:
- R1 (Top Resistor): A known, constant resistor value.
- R2 (Bottom Resistor): The resistive sensor with variable resistance.
The output voltage, Vout, is measured across the bottom resistor (R2). The relationship is given by:
R2 = (Vout × R1) / (Vin - Vout)
Where:
- R2: Variable resistance (sensor).
- Vin: Input voltage.
- Vout: Output voltage across R2.
- R1: Known resistor value.
Example: Measuring Light with a Photo Resistor

Let’s measure light intensity using a photo resistor:
-
Photo Resistor Characteristics:
- Resistance is ~1 kΩ when the lights are on.
- Resistance increases to ~10 kΩ in the dark.
-
Voltage Divider Setup:
- R1: 4.7 kΩ resistor.
- R2: Photo resistor.
-
Circuit Connection:
- Input voltage (Vin): 5V provided by an Arduino or another power source.
- Output voltage (Vout): Measured across the photo resistor.
-
Measurement Options:
- Use an Arduino analog input channel to measure Vout.
- Alternatively, use a multimeter in voltage mode.
Demonstration with an Arduino

Using an Arduino microcontroller:
-
Arduino Setup:
- Provide 5V to the voltage divider.
- Connect the output voltage (Vout) to analog input channel A0.
-
Simple Arduino Code:
The Arduino reads Vout, calculates the photo resistor’s resistance, and displays the values in the console.
-
Results:
-
Lights On:
- Vout ≈ 1.2V.
- Resistance of photo resistor: ~1.5 kΩ.
-
Lights Off:
- Vout ≈ 2.2V.
- Resistance of photo resistor: ~3.8 kΩ.
-
Lights On:
Practical Tips
-
Choose Appropriate Resistor Values:
Use resistor values that balance the range of the sensor’s resistance for better accuracy.
-
Verify Voltage Levels:
Ensure your input voltage matches the requirements of your sensor and microcontroller.
-
Use High-Resolution ADCs:
Higher resolution improves the accuracy of resistance measurements.
Why It Matters
Understanding how to measure resistive sensors is a vital skill for any electronics enthusiast. By mastering the voltage divider method, you can effectively interface sensors with microcontrollers, enabling your projects to respond to real-world conditions. Start experimenting today, and unlock the potential of resistive sensors in your designs!