Skip to content
MakerBuddy

Electronics Science Fair Projects: 25 Sensor Ideas With Hypotheses

Twenty-five electronics science fair projects built around one sensor each. Every idea comes with a hypothesis, the variable you change, the reading you measure and how to log the data.

By the MakerBuddy teamPublished 20 min read

A science fair tri-fold board with question, hypothesis, results graph and table panels stands on a table behind two cups of water, one wrapped in wool and one in foil, with a temperature probe in the wool cup wired to a small purple sensor board, a distance sensor on a stand and a laptop showing two temperature cards
A science fair tri-fold board with question, hypothesis, results graph and table panels stands on a table behind two cups of water, one wrapped in wool and one in foil, with a temperature probe in the wool cup wired to a small purple sensor board, a distance sensor on a stand and a laptop showing two temperature cards

Good electronics science fair projects ask one clear question and use a sensor to answer it with numbers. Does a wool wrap keep water warm longer than foil? Does a soft cushion confuse a distance sensor? Does a plant in a closed box make the air more humid? Below are 25 ideas. Each one gives you a hypothesis you can test, the variable you change, the reading you measure and the sensor that takes it.

Every idea uses parts from a typical student sensor kit. On the MakerBuddy kit they plug into labelled sockets, and 24 of the 25 ideas need no code. You read the numbers from a browser dashboard and write them in a logbook, or let a short laptop script log them.

How each idea is laid out

Each idea follows the same chain: idea, hypothesis, variable, sensor. That chain is the skeleton of your whole project.

  • The hypothesis is a prediction you can test, written as "If I change this, then that will happen."
  • The independent variable is the one thing you change on purpose.
  • The dependent variable is the reading you measure. A sensor gives you this as a number.
  • Controlled variables are everything you keep the same, so the test stays fair.
The insulation tester laid out as one chain: the idea "Does wool keep water warmer than foil?", the hypothesis "If the cup is wrapped in wool, then the water will lose heat more slowly", the variables (change the wrap material, measure the water temperature every 2 minutes, keep the cup, water amount and start temperature the same) and the sensor, a waterproof DS18B20 temperature probe in the cup.
The insulation tester laid out as one chain: the idea "Does wool keep water warmer than foil?", the hypothesis "If the cup is wrapped in wool, then the water will lose heat more slowly", the variables (change the wrap material, measure the water temperature every 2 minutes, keep the cup, water amount and start temperature the same) and the sensor, a waterproof DS18B20 temperature probe in the cup.

A hypothesis does not have to turn out right. UC Berkeley's Understanding Science guide puts it simply: science "neither proves nor disproves" (opens in a new tab); it accepts or rejects ideas based on evidence. A clear "my prediction was wrong, and here is why" is a strong result. Judges care more about a fair test than a lucky guess. If you want more practice writing them, see our hypothesis examples for science fair projects and the guide to independent vs dependent variables with sensor examples.

Science experiment or engineering project?

Some fairs split projects into two kinds. A science experiment tests a prediction about the world. An engineering project builds something and tests whether it meets a goal. Ideas 23 to 25 below are engineering science fair projects. The rest are experiments.

Starts with
Science experiment
A question about how something behaves
Engineering project
A problem someone has
You write
Science experiment
A hypothesis
Engineering project
Design goals you can measure
You change
Science experiment
One variable at a time
Engineering project
The design, one change per version
You measure
Science experiment
The effect of that variable
Engineering project
Whether each version meets the goals
Ends with
Science experiment
A conclusion: supported or not
Engineering project
A best version and what to improve next

Table note: the engineering steps follow TeachEngineering's engineering design process (opens in a new tab) from the University of Colorado Boulder: ask, research, imagine, plan, create, test and improve, then repeat.

Choosing an idea by time and level

Check how long the data takes to collect before you choose. A week of readings will not fit if the fair is in four days.

Group
Light
Ideas
1 to 5
Sensors
Light sensor
Time to collect data
30 minutes to one day
Code needed
No
Group
Temperature and heat
Ideas
6 to 10
Sensors
Waterproof probe, DHT11
Time to collect data
30 to 90 minutes
Code needed
No
Group
Humidity and air
Ideas
11 to 14
Sensors
DHT11, MQ-2 gas sensor
Time to collect data
1 to 2 hours
Code needed
No
Group
Sound, distance and motion
Ideas
15 to 19
Sensors
HC-SR04, PIR
Time to collect data
1 to 2 hours
Code needed
Only idea 19
Group
Soil and water
Ideas
20 to 22
Sensors
Soil moisture sensor
Time to collect data
2 days to a week
Code needed
No
Group
Engineering design
Ideas
23 to 25
Sensors
Servo, relay, rules
Time to collect data
An afternoon per version
Code needed
No

The times are for collecting data, not writing up. Ages 11 to 13 do well with light and temperature. Ages 14 and up can take on the distance and engineering ideas. For build ideas without the experiment side, see our ESP32 project ideas for students, and more science fair guides are on the MakerBuddy blog.

Light experiments (ideas 1 to 5)

The MakerBuddy light sensor is a light-dependent resistor. It reports a number from 0 to 100, where a higher number means more light. That number is not lux, so compare readings with each other, not with a light meter.

Idea
1. Light and distance
Hypothesis
If a torch moves twice as far from the sensor, the reading will fall by much more than half
Change
Torch distance: 10, 20, 40 and 80 cm
Measure
Light reading, 0 to 100
Idea
2. Which colour does the sensor see best?
Hypothesis
If a phone screen shows red, green and blue at full brightness, green will give the highest reading
Change
Screen colour
Measure
Light reading
Idea
3. Light through fabric
Hypothesis
If a fabric is thicker or darker, less light will reach the sensor
Change
Fabric: cotton, denim, wool, black cloth
Measure
Light reading under each
Idea
4. White or black surface
Hypothesis
If a lamp shines on white paper, more light will bounce onto the sensor than from black paper
Change
Paper colour
Measure
Reflected light reading
Idea
5. Daylight by the window
Hypothesis
If you log the window light every 15 minutes, the reading will peak around midday
Change
Time of day
Measure
Light reading

Idea 1 tests the inverse square law. HyperPhysics explains that radiation from a point source is one fourth as much at twice the distance (opens in a new tab). Your sensor will not show exactly a quarter, because its 0 to 100 scale is not a straight line in lux. Explaining that gap is a great conclusion. Do it in a dark room, with the torch on the same line each time.

Idea 2 has a real reason behind it. One common light-dependent resistor, the PDV-P8001, has a peak sensitivity at 520 nm, which is green light (opens in a new tab). Your sensor may be a different part, so this is a prediction, not a fact. The catch to discuss: a phone's green may simply be brighter than its blue.

The light sensing lesson shows how to read the light number before you start.

Temperature and heat experiments (ideas 6 to 10)

Use the waterproof DS18B20 probe for anything in water. Adafruit lists it as accurate to ±0.5 °C from −10 to 85 °C (opens in a new tab). The DHT11 is fine for air, but Adafruit gives it ±2 °C accuracy (opens in a new tab), which hides small differences.

Idea
6. Insulation tester
Hypothesis
If a cup of warm water is wrapped in wool, it will cool more slowly than one wrapped in foil or paper
Change
Wrap material
Measure
Water temperature every 2 minutes for 30 minutes
Idea
7. Black or white jar
Hypothesis
If a jar of water is wrapped in black paper and set in the sun, it will warm faster than one in white paper
Change
Paper colour
Measure
Water temperature rise in 30 minutes
Idea
8. Wet probe cooling
Hypothesis
If the probe tip is wrapped in damp tissue and fanned, it will read lower than a dry tip
Change
Dry, damp, damp and fanned
Measure
Probe temperature after 5 minutes
Idea
9. Salt and ice
Hypothesis
If salt is stirred into ice water, the water will drop below 0 °C
Change
Spoons of salt
Measure
Lowest temperature reached
Idea
10. Warm air rises
Hypothesis
If the probe is held near the ceiling, it will read warmer than near the floor
Change
Height above the floor
Measure
Air temperature after 5 minutes at each height

The insulation tester is one of the 43 no-code ideas in the MakerBuddy project idea library. Use warm water, not hot water. Start each cup at the same temperature, because a hotter cup cools faster no matter what it is wrapped in.

For idea 10, run the board from a USB power bank or a long USB cable so you can lift it, and wait at each height until the reading stops changing. The precision temperature lesson covers how the probe works.

Humidity and air experiments (ideas 11 to 14)

The DHT11 measures relative humidity. Adafruit gives its useful range as 20 to 80% humidity with ±5% accuracy (opens in a new tab), and it reads at most once a second. Readings above 80% are worth noting but less trustworthy.

Idea
11. Plants and humidity
Hypothesis
If a leafy plant sits in a closed clear box, the humidity inside will rise faster than in an empty box
Change
Plant or no plant
Measure
Humidity every 10 minutes for 1 hour
Idea
12. Bathroom fan
Hypothesis
If the fan runs after a shower, humidity will fall back to normal faster
Change
Fan on or off
Measure
Minutes until humidity returns to the starting value
Idea
13. Gas sensor warm-up
Hypothesis
If the gas sensor has been on longer, its reading in clean air will change less from minute to minute
Change
Minutes since power on
Measure
Gas reading, 0 to 100, every minute for 30 minutes
Idea
14. Fresh air after cooking
Hypothesis
If a window is opened after cooking, the gas reading will fall back faster
Change
Window open or closed
Measure
Minutes until the reading settles

Ideas 13 and 14 use the MQ-2 gas sensor. Its datasheet says the maker's figures assume a preheat of over 48 hours (opens in a new tab), so idea 13 is a real question: how long does yours need? The gas and air quality lesson explains what the number means.

Sound, distance and motion experiments (ideas 15 to 19)

The HC-SR04 measures distance by timing an echo. Its datasheet gives a range of 2 cm to 4 m and a 15 degree measuring angle (opens in a new tab), and asks for a flat, smooth target of at least 0.5 square metres. Those limits are where the interesting experiments are.

Idea
15. Cold air, wrong distance
Hypothesis
If the air is colder, the board will show a longer distance to the same wall
Change
Air temperature
Measure
Distance reading to a wall 100 cm away
Idea
16. Soft or hard target
Hypothesis
If the target is a soft cushion, readings will jump around more than with a hard board
Change
Target material
Measure
Spread of 30 readings (highest minus lowest)
Idea
17. Tilted target
Hypothesis
If a flat board is tilted past about 15°, the readings will stop making sense
Change
Tilt angle: 0, 10, 20, 30, 45°
Measure
Distance reading
Idea
18. PIR walking test
Hypothesis
If you walk across the sensor's view, it will notice you from farther away than if you walk straight at it
Change
Walking direction
Measure
Farthest distance that shows motion on the dashboard
Idea
19. Reaction timer
Hypothesis
If the cue is a beep instead of a light, my reaction time will be shorter
Change
Cue type
Measure
Reaction time in milliseconds, 20 trials each

Idea 15 is the worked example in the next section. The ultrasonic sensor guide explains the echo timing in full.

For idea 16, watch for a frozen number. When an echo fails, the MakerBuddy board keeps showing the last good reading instead of a wrong one. A reading that never changes can mean the sensor heard nothing.

Idea 19 is the one idea in this group that needs your own Arduino code, because the board's rules only check the button once a second. Uploading your own sketch replaces the MakerBuddy firmware until you put the firmware back. It also tests a person, which brings in the fair rules covered further down.

Soil and water experiments (ideas 20 to 22)

The kit's soil sensor is a capacitive blade with a printed line. Push it in only up to that line. Before any soil experiment, calibrate it: hold the blade in air for "dry", then in a glass of water up to the line for "wet". Out of the box the board uses raw readings of 3000 for dry and 1200 for wet, which will not match your soil.

Idea
20. Which soil holds water?
Hypothesis
If sand, potting soil and garden soil get the same water, sand will read driest after 24 hours
Change
Soil type
Measure
Soil moisture, 0 to 100%, at 0, 6 and 24 hours
Idea
21. Mulch test
Hypothesis
If a pot has a layer of mulch on top, its soil will dry more slowly over a week
Change
Mulch or bare soil
Measure
Soil moisture once a day
Idea
22. Sun or shade
Hypothesis
If one pot sits in the sun and one in the shade, the sunny pot will dry faster
Change
Pot position
Measure
Soil moisture once a day

Use the same pot size, amount of soil and amount of water for every pot. The smart agriculture lesson walks through calibration.

Engineering design projects (ideas 23 to 25)

An engineering project starts with a goal you can measure. Build a version, test it, change one thing and test again. The capstone lesson plans a project this way. These three use the MakerBuddy rules, which watch one or two sensors and run up to 10 steps, with no code.

Idea
23. Auto-fan that does not flicker
Design goal
The fan switches no more than twice in 30 minutes
Change between versions
Gap between the on and off temperatures: 0, 1 and 2 °C
Measure
Number of switches in 30 minutes
Idea
24. Needle thermometer
Design goal
The servo needle reads within 2 °C of the probe
Change between versions
Needle range setting and dial drawing
Measure
Error at 5 test temperatures
Idea
25. Parking assist light
Design goal
The red light comes on before a toy car passes the 20 cm mark
Change between versions
Car speed and the distance setting in the rule
Measure
Where the car is when red comes on

Idea 23 uses the relay with a small low-voltage fan. Two rules do the work: fan on above one temperature, fan off below a lower one. With no gap, the fan clicks on and off every time the reading wobbles.

Idea 25 has a hidden lesson. The board reads its sensors once a second, and a Condition rule starts once its match has held for 0.3 seconds. So the red light can come on more than a second after the car crosses your line. A fast car travels farther in that second. Measuring how far is the experiment. The range logic lesson shows how to give each range of readings its own colour.

Idea 25 with a toy car at 10 cm/s, worst case: a reading at 0 s shows 20 cm, which is not under 20 yet; the next reading comes 1 s later at 10 cm and the match starts; after the 0.3 s hold the red light comes on at 1.3 s, when the car is at 7 cm, 13 cm past the mark.
Idea 25 with a toy car at 10 cm/s, worst case: a reading at 0 s shows 20 cm, which is not under 20 yet; the next reading comes 1 s later at 10 cm and the match starts; after the 0.3 s hold the red light comes on at 1.3 s, when the car is at 7 cm, 13 cm past the mark.

Worked example: does cold air change the distance reading?

Here is idea 15 from question to data plan. It is a good project for ages 14 and up, because the answer comes from a calculation you can check.

The science behind the hypothesis

An ultrasonic sensor works out distance from the time an echo takes: distance = time × speed of sound ÷ 2. But sound does not travel at one fixed speed. Texas Instruments' ultrasonic sensing note gives 343 m/s in dry air at 20 °C (opens in a new tab), and a rule of speed = 331 + 0.6 × temperature in °C.

The MakerBuddy firmware uses a fixed speed of 340 m/s, the same value as the HC-SR04 datasheet, with no temperature correction. By the rule above, 340 m/s is the speed at 15 °C. In colder air, sound is slower, the echo takes longer, and the board thinks the wall is farther away.

Hypothesis: If the air around the sensor is colder, then the board will show a longer distance to a wall that has not moved.

Predicting the numbers

Board reading = real distance × 340 ÷ (331 + 0.6 × temperature). For a wall exactly 100 cm away:

Air temperature
0 °C
Real speed of sound
331 m/s
Board shows
102.7 cm
Air temperature
10 °C
Real speed of sound
337 m/s
Board shows
100.9 cm
Air temperature
15 °C
Real speed of sound
340 m/s
Board shows
100.0 cm
Air temperature
20 °C
Real speed of sound
343 m/s
Board shows
99.1 cm
Air temperature
30 °C
Real speed of sound
349 m/s
Board shows
97.4 cm

Table note: speeds use the 331 + 0.6 × °C rule from Texas Instruments' Ultrasonic Sensing Basics (opens in a new tab); the calculation is ours.

So between a 0 °C garage and a 30 °C room, the prediction is a change of about 5.3 cm at one metre. At 2 metres it doubles to about 10.6 cm. Whether that shows up above the normal wobble in readings is what your experiment finds out, so take plenty of readings.

Predicted board reading for a wall 100 cm away: 102.7 cm at 0 °C, 100.9 cm at 10 °C, 100.0 cm at 15 °C, 99.1 cm at 20 °C and 97.4 cm at 30 °C. The line crosses the real 100 cm at 15 °C, where the firmware's 340 m/s is right; from 0 to 30 °C the reading changes by about 5.3 cm.
Predicted board reading for a wall 100 cm away: 102.7 cm at 0 °C, 100.9 cm at 10 °C, 100.0 cm at 15 °C, 99.1 cm at 20 °C and 97.4 cm at 30 °C. The line crosses the real 100 cm at 15 °C, where the firmware's 340 m/s is right; from 0 to 30 °C the reading changes by about 5.3 cm.

Variables and method

  • Independent variable: air temperature. Measure it with the waterproof probe hanging in the air next to the sensor, not touching anything.
  • Dependent variable: the distance reading.
  • Controlled variables: the same wall, the same 100 cm measured with a tape measure, the same sensor height, nothing moving in front of the sensor.
  1. 1

    Set the sensor 100 cm from a hard, flat wall, square on. Mark the spot on the floor with tape.

  2. 2

    In a warm room, wait 15 minutes for the board and the air to settle. Take 30 readings.

  3. 3

    Move everything to a cold place, such as a garage or porch in winter. Set up on the same tape marks against a similar wall. Wait 15 minutes, then take 30 readings.

  4. 4

    Repeat each condition three times on different days.

  5. 5

    Plot the average reading against air temperature, next to the predicted line.

Logging the readings with a script

You can write the readings by hand from the dashboard. For 30 readings per trial, a short Python script on a laptop is faster and makes fewer mistakes. It asks the board for its readings over Wi-Fi using the GET /api/sensors request from the MakerBuddy REST API. The laptop must be on the same Wi-Fi as the board.

python
"""Science fair trial logger for the MakerBuddy board.
Takes one reading every 2 seconds for one trial, adds every row
to results.csv, then prints the average and the spread."""
import csv
import json
import time
import urllib.request
from datetime import datetime

BOARD = "http://192.168.1.100"   # your board's IP address, or its name.local
COLUMNS = {"distance_cm": "di", "air_c": "d8"}   # column name: sensor key
READINGS = 30
GAP_SECONDS = 2                  # the board reads its sensors once a second

trial = input("Trial label, for example 'garage run 1': ")
first = []                       # values of the first column, for the summary

with open("results.csv", "a", newline="") as f:
    log = csv.writer(f)
    if f.tell() == 0:            # a new file gets a header row first
        log.writerow(["time", "trial", *COLUMNS])
    for n in range(READINGS):
        try:
            with urllib.request.urlopen(BOARD + "/api/sensors", timeout=5) as reply:
                data = json.load(reply)
            row = [data[key] for key in COLUMNS.values()]
        except (OSError, ValueError, KeyError) as problem:
            print("Missed a reading:", problem)
        else:
            now = datetime.now().isoformat(timespec="seconds")
            log.writerow([now, trial, *row])
            f.flush()            # save the row now, not at the end
            first.append(row[0])
            print(n + 1, row)
        time.sleep(GAP_SECONDS)

if first:
    average = sum(first) / len(first)
    print(f"{trial}: average {average:.1f}, lowest {min(first)}, "
          f"highest {max(first)}, {len(first)} readings")

COLUMNS picks the sensors: di is distance in centimetres and d8 is the waterproof probe in °C. For other ideas, swap in te (DHT11 temperature), hu (humidity), li (light), ga (gas) or sm (soil moisture). The gap is 2 seconds because the board updates its readings once a second, so asking faster only copies a reading twice. The trial label goes into every row, so all your runs fit in one file.

The board's local web connection has no password. Only use it on a Wi-Fi network you trust, and never open it to the internet.

Logging data with the dashboard

Most ideas need only the dashboard and a logbook. The dashboard shows each sensor as a live card, so one person reads and one writes.

  1. 1

    Draw your table before you start: time, trial, condition, reading, notes.

  2. 2

    Pick a gap between readings that suits the idea: every 2 minutes for a cooling cup, every 10 minutes for humidity, once a day for soil.

  3. 3

    Read the number at the same moment in each gap, and write it straight down.

  4. 4

    Note anything odd as it happens: a door opened, someone walked past, the sun came out.

The Term 2 data logger lesson teaches exactly this, from a timestamped logbook to a graph.

On an iPhone or iPad, open the dashboard in Safari. On a laptop, use Chrome, Edge or Firefox with the MakerBuddy extension, or Safari on a Mac. On an Android phone, use the free MakerBuddy app from Google Play. If your school or club has no kits yet, the MakerBuddy kit order page covers orders in Pakistan and quotes for other countries.

Common mistakes and how to fix them

Symptom
Results look random from trial to trial
Cause
Two things changed at once, such as the material and the start temperature
Fix
Change one variable only; write down every controlled variable before you start
Symptom
The difference between conditions is smaller than the wobble in readings
Cause
Only one reading per condition
Fix
Take many readings per trial and at least three trials; report the average and the spread
Symptom
A 0.5 °C difference "proves" the hypothesis
Cause
The DHT11's accuracy is ±2 °C
Fix
Use the waterproof probe, or say the difference is within the sensor's accuracy
Symptom
Soil reads 0% or 100% everywhere
Cause
The soil sensor was not calibrated
Fix
Set dry in air and wet in water before the first reading
Symptom
Distance shows the same number for minutes
Cause
Echoes are failing and the board keeps the last good reading
Fix
Use a larger, flatter, harder target and face it square on
Symptom
Gas readings drift all morning
Cause
The MQ-2 heater has not settled
Fix
Power it up well before you start and log the warm-up as part of your data
Symptom
A quick event never shows up
Cause
The board reads sensors once a second
Fix
Slow the event down, or write your own code for fast events

Fair rules, safety and your display

Check your own fair's rules early. The Regeneron ISEF rules are a useful example of what to look for, and ISEF-affiliated fairs check projects against them (opens in a new tab).

For the display itself, our guide on how to make a science fair board judges remember covers layout, graphs and what to say.

FAQ

What's the easiest electronics science fair project?

The light and distance test (idea 1) is one of the easiest. You need a light sensor, a torch, a tape measure and a dark room. The data takes about 30 minutes to collect, and the result has a real physics law behind it. The insulation tester (idea 6) is a close second.

What are some good ideas for engineering science fair projects?

Pick a problem with a goal you can measure. An auto-fan that does not flicker, a needle thermometer that reads within 2 °C, or a parking light that stops a toy car in time are all good choices. Build a first version, test it, change one thing and test again. Show every version on your board.

Do I need to know how to code?

No. On a kit with a dashboard and built-in rules, 24 of these 25 ideas need no code. You read the numbers from the dashboard and write them down. Code helps when you want fast events, like a reaction timer, or automatic logging with a script.

How many trials should a science fair experiment have?

Do at least three trials of each condition, and take several readings in each trial. Sensor readings wobble, so one reading per condition can mislead you. Report the average and the spread, and say how big a difference has to be before you trust it.

What if my hypothesis is wrong?

That is a normal result. Say what you predicted, what happened and why you think the difference came about. A wrong prediction with a fair test and a good explanation often impresses judges more than a right one with weak data.

Are sensor projects good for high school science fairs?

Yes, if the question is strong. High school students can go deeper with ideas like the cold air distance test, which needs a calculation, or the parking assist, which looks at timing. Add error analysis: how accurate is the sensor, and is your difference bigger than that?

Can I do an electronics science fair project at home?

Yes. Most of these ideas need only the kit, a laptop or tablet, and things from around the house: cups, fabric, paper, pots and soil. The board runs on 5 V over USB and needs a 2.4 GHz Wi-Fi network, and a phone hotspot works.

How long does a sensor science fair project take?

Plan two to three weeks from idea to display: a few days to test your setup, a week of data, and the rest for graphs and the board. Soil ideas need at least a week of readings, so start those first.

Sources

Keep reading

Learn with MakerBuddy

32 free lessons, one kit, no wiring to start.

Every part in these guides has its own lesson. Read them free, or get a kit for your class.