hardware, android

A big part of what makes the Arduino great for projects is the myriad of sensors that can be used with the Arduino. This article discusses some useful sensors that allow you to build cool projects and prototypes on your Arduino board.


  • Connecting the Sensors
  • 1. Gas Sensors
  • 2. Accelerometer
  • 3. Heat and Movement Sensors
  • 4. Air Quality Sensors
  • 5. Liquid Sensors
  • 6. Temperature and Humidity Sensors
  • 7. Light Sensors
  • 8. Touch Sensors
  • 9. Sound and Ultrasonic Sensors
  • 10. Magnetic Hall Sensors
  • Frequently Asked Questions

Connecting the Sensors

For your prototyping and electronics projects, I would advise using to connect the sensors to your Arduino.

There are also that generally fit on top of the Arduino to give it more functionality and allow for more sensors to be connected. Typically, you would need to connect the sensor to the Arduino’s 5V pin, ground, and another pin; however, this depends on the sensor.

hardware, android

An Arduino and a shield with sensors

New to Arduino? Check out our guide to creating a DIY smart home with Arduino.

1. Gas Sensors

Gas sensors detect carbon monoxide, hydrogen, and smoke, among other gases.

Below are a couple of examples:

  • : can detect gases such as butane or hydrogen.
  • : can detect other gases, such as methane and hexane.

These gas sensors are chemiresistors, as they sense how the resistance changes when a chemical compound comes into contact with a combustible gas. The gas sensing material is, for example, tin oxide, which only has a high enough conductivity when the air has one of the gases in it. The gas sensor’s sensitivity can be changed by turning the attached potentiometer.

For most of these gas sensors, while the presence of the gas can be detected, the type of gas cannot be determined.

2. Accelerometer

There are sensors that can be used to determine acceleration as well as tilt (gyroscope measurements). The sensors can be added to .

One project that these sensors are good for is step-counting builds, as they require the measurement of orientation and acceleration changes.

Another use for these sensors is in gaming controllers or intuitive remote controls for drones, where tilt and gesture inputs are important.

Note: if you prefer a ready-made solution to track your steps, check out these pedometer apps for Android and iOS.

3. Heat and Movement Sensors

If you want to make your own alarm system, a passive infrared (PIR) sensor is useful. that can detect when a person (or warm body) moves near it.

A PIR detects changes in heat as infrared (IR) radiation. As the person moves in front of the sensor, within the given range, the change in infrared radiation activates the sensor and any alarm that is triggered with it.

4. Air Quality Sensors

A dust sensor can be used to determine the air quality in terms of the amount of fine dust particles in the air. It measures the concentration – the number of particles of dust per million of air. The sensor has an infrared light-emitting diode and a phototransistor and detects the dust when the pathway of light is interrupted by the fine dust particles in the air.

hardware, android

Example sensors for an Arduino

The dust reflects the infrared light and absorbs some of it, with the degree to being determined by the size and number of dust particles. are useful for a number of projects, including air purification systems or vacuum cleaners.

There are also sensors that are calibrated to determine a number of gases in the air, such as formaldehyde, acetone, and carbon monoxide. These sensors are helpful to determine air quality, both inside and outside.

5. Liquid Sensors

A moisture sensor is useful for such things as checking how wet the soil is of a potted plant to determine whether it needs to be watered or not.

, then connected to an Arduino. The moisture sensor works based on measuring the resistivity of the moisture in the soil.

An alcohol sensor can be used to sense alcohol in projects such as a breathalyzer. It works using a semiconductor, which has a voltage output dependent on how much alcohol is in the breath.

6. Temperature and Humidity Sensors

Some sensors can help detect the weather and are used in weather stations, thermometers, hygrometers, and weather displays. They are often bundled as .

A temperature sensor, otherwise known as a thermistor (thermal resistor), is especially dependent on temperature and made up of two metals that have a variable resistance across them when the temperature changes. They are also known as resistance temperature detectors (RTDs).

Humidity sensors usually have a thin metal with a variable capacitance based on how humid the air is.

The temperature and humidity sensors have certain ranges of operation and may not be able to measure low temperatures and very high temperatures. The type of thermocouple used, will determine the operating temperature range that it can measure. The accuracy depends on the sensor and the size and type of metals used.

With the humidity and temperature measurement, these sensors can also tell of the atmospheric pressure. This is dependent on the input of the altitude.

7. Light Sensors

Light sensors are one of the most common type of sensor. They work by converting photons of light into an electrical output, thus known as photosensors.

One such sensor is a photoresistor, which could be used to detect sunlight. The resistance varies based on the amount of photons that hit the compounds in the photoresistor.

The resistance generally decreases as the intensity of the light increases. These are (LDRs), which are useful in a number of projects, such as controling lights so that they turn on automatically at night.

Light sensors are not only used for visible light, as there are also infrared photosensors, such as those in . These work by emitting infrared (IR) light then measuring it with the phototransistor when it returns.

Generally, the more lighter the color of the object that the IR light hits, the more light is reflected back.

Tip: learn how to power light bulbs with an Arduino.

8. Touch Sensors

A touch button can be used for many projects to start or stop a process when the button is pressed.

detects the change in capacitance when you press the touch pad with your finger (or when your finger is just close enough to the touch sensor).

hardware, android

Some of the many sensors that work with an Arduino microcontroller board

There are also resistive touch sensors that do not measure the capacitance changes, but do measure the pressure applied to the sensor. This applied pressure is measured through three layers: two conductive layers and one non-conductive layer sandwiched between them. When the button or sensor is pressed, the two conductive layers make contact, and the sensor is activated.

Capacitive touch sensors allow for more fine adjustments and multi-touch, whereas resistive touch typically allows for simple activation of on and off.

9. Sound and Ultrasonic Sensors

Sound sensors are generally built from microphones. They work similarly to the human ear, with a diaphragm that vibrates when sound waves hit it. These vibrations are then converted to an electrical input from .

There is usually a potentiometer on the sound sensor that can be turned to adjust the sensitivity.

are commonly used to measure distances, as a sound wave at ultrasonic frequencies (that can’t be detected by the human ear) is transmitted then bounces back off of objects and is received by the transducer.

10. Magnetic Hall Sensors

Hall sensors are named for the Hall effect, which is used to measure the magnetic fields. These are useful for a number of projects where speed and proximity measurements are needed.

An example would be to detect when a door or window is open, using a magnet and a Hall sensor that detect when the magnetic field is no longer close (when the door with the attached magnet is opened away from the Hall sensor).

There are, of course, other sensors, such as cameras with artificial intelligence. You can also learn the basics of Arduino. If you are excited about the possibilities with the Arduino, read more about Arduino starter kits so that you can get working on a project.

Frequently Asked Questions

How do you choose the right sensor?

There are certain specifications that you should look for, such as temperature sensors and the temperature ranges that they work for, and levels of precision. The supplier should also be reputable so that you know the sensor is well made. The cost is always a factor, but the size may well be another, especially if you need to fit the sensor into a confined space.

What is the difference between an actuator and a sensor?

A sensor is used to take physical measurements, then transfer it as electrical signals, while actuators have an electrical input which they then transfer into physical, or mechanical, action.

How do you measure proximity with an Arduino?

The easiest way would be to use an infrared sensor. The infrared light that is emitted hits an object and is reflected back to a photo sensor. Another way is with an ultrasonic sensor, which allows for the measurement of distance to objects.

All photographs and screenshots were taken by the author.


Jaguars vs Chiefs live stream: how to watch the NFL playoff game online

(Image: © Getty Images / David Eulitt) Swipe to scroll horizontally Jaguars vs Chiefs live stream Kick-off: Saturday, January 21, 4.30pm ET / 1.30pm PT / 9.30pm GMT TV channel: NBC Live stream: Peacock TV (US) | DAZN (CA) | Sky (UK) | 7Plus (AU) Use ExpressVPN to watch ...

View more: Jaguars vs Chiefs live stream: how to watch the NFL playoff game online

A Twisted New Body Dysmorphia Romantic Film Looks Gruesomely Unique

Some movie trailers do their best to push all the information you might need before the premiere to let you properly gauge your interest. Other trailers don’t care about all that and only want to show you a series of odd sequences you cannot piece together, but know you’ll ...

View more: A Twisted New Body Dysmorphia Romantic Film Looks Gruesomely Unique

How to Disable Screenshot Thumbnail Previews on Mac

Modern versions of macOS feature a floating thumbnail preview for screenshots that allows users to quickly apply edits to their screenshots before they save them. If you find this interface too obtrusive, or simply prefer to edit your screenshots later using the Preview app, Here is how you can ...

View more: How to Disable Screenshot Thumbnail Previews on Mac

LG’s smart projector is the square cousin of Samsung’s cool The Freestyle

This Tiny MSI PC is Packed With Power

MSI Following the example set by the Mac Mini, many Windows-powered compact PCs have popped up recently with solid hardware. If none have quite caught your eye, though, maybe this PC by MSI will. MSI has just released a new tiny PC called the Cubi 5 12M, and it’s ...

View more: This Tiny MSI PC is Packed With Power

Logitech’s New Colorful Keyboards and Mice Look Great

Logitech Logitech makes some of the best keyboards and best mice around, and you might be familiar with the company’s RGB-packed gaming products. These new peripherals are really packed with color, but we’re not really talking about lights. Logitech has announced a range of new colors for a bunch ...

View more: Logitech’s New Colorful Keyboards and Mice Look Great

This Older Porsche Infotainment Upgrade Helps Modernize Your 911 and Cayenne

In an announcement earlier this week, Porsche delighted fans with an expanded lineup of modern head units for older cars. The Porsche infotainment upgrade now includes some of their most popular models from the early and mid-00s. It means you can now have Apple CarPlay and Android Auto in your ...

View more: This Older Porsche Infotainment Upgrade Helps Modernize Your 911 and Cayenne

11 Fixes: Download Pending Error In Google Play

Google Play Store is the default platform for downloading apps on your Android phone, and it is without a doubt one of the most trusted official programs. But what if you get the download pending error in google play? The Google Play store usually works smoothly, however, it can ...

View more: 11 Fixes: Download Pending Error In Google Play

Only 1 Type of Buyer Should Even Consider the 2022 Jeep Compass

“Part of the Journey Is the End;” Marvel’s Avengers Seems to be Shutting Down

How To Connect AirPods To A Laptop?

Satechi Thunderbolt 4 Slim Hub review: A sleek and portable laptop hub

Wi-Fi routers are being hit by a dangerous new Android malware with extra DNS hacks

Is the 2023 Toyota RAV4 Too Old to Keep Up?

Servant unleashes a bed bug blitz [Apple TV+ recap]

Hostinger quietly shutters Zyro to focus on Hostinger Website Builder service

Redmi Note 12 Turbo Tipped to get Snapdragon 7-series SoC

Avatar 2 animators tricked James Cameron into believing some shots were practical

The 2016 Hyundai Sonata Got ‘Nearly Everything Right’

Super Bowl 2023 live stream: how to watch the game, commercials and halftime show from anywhere


Top Car News Car News