• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Circuit Ideas for You

Get free circuit ideas online.

  • Home
  • Privacy Policy
  • About
Home » Human Presence and Motion Sensor Circuit using Arduino

Human Presence and Motion Sensor Circuit using Arduino

Last updated on 31 July 2025 by Admin-Lavi Leave a Comment

This project uses electronic and integrated technology for energy saving, smart places and safety system.

Main idea is to sense human presence and movement.

We use mix of sensors and microcontroller to do this work.

In this tutorial for Human Presence and Motion Sensor Circuit using Arduino we have used STHS34PF80 sensor, IC 7809 and some other parts like resistors and capacitors to make simple working circuit.

Arduino work like brain of circuit and it read sensor data and give proper action.

STHS34PF80 is a capacitive proximity sensor.

It senses object or movement near by using change in capacitance.

This sensor is good for touchless sensing and it can feel human body and motion.

This circuit is very useful in many motion sensing jobs.

Code:

#include <Arduino.h>

const int sensorPin = A0;
const int threshold = 500; // Adjust threshold as needed

void setup() {
  Serial.begin(9600);
}

void loop() {
  int sensorValue = analogRead(sensorPin);

  if (sensorValue > threshold) {
    Serial.println("Human detected!");
  } else {
    Serial.println("No human detected");
  }

  delay(100); // Adjust delay as needed
}

Code Explanation:

  • We used #include to add needed Arduino library and functions.
  • Two constants: const int sensorPin = A0; sensor connect to analog pin A0 and const int threshold = 500; if value is more than 500 then human is there.
  • Serial.begin(9600); start serial monitor for checking data.
  • In loop: int sensorValue = analogRead(sensorPin); it read sensor data and if (sensorValue > threshold) it checks if value is more than threshold.
  • If yes then print “Human detected!” on serial monitor.
  • If no then print “No human detected”.
  • delay(100); it waits for 100 milliseconds before next reading.

Circuit Working:

Human Presence and Motion Sensor Circuit Diagram using Arduino

Parts List:

ComponentQuantity
Resistor
2.2k 1/4 watt2
Capacitor
Ceramic 100nF1
Semiconductors
Arduino Uno Board1
IC 78091
STHS34PF80 Human Sensor1

We have used IC 7809 to give steady 9V power to Arduino and STHS34PF80 sensor.

IC 7809 ensures power is stable so Arduino and sensor can work properly.

It also stop noise and voltage changes that can make sensor give wrong data.

IC 7809 protect circuit from too much voltage or current.

STHS34PF80 is a capacitive sensor.

It can measure temperature and humidity but here we used it to sense change in capacitance when human is near.

When human come close or move then capacitance around sensor changes.

Sensor gives raw analog signal.

Before Arduino reads it, signal need to adjust.

Resistors and capacitor in circuit make low-pass filter and this remove fast noise and clean the signal.

Arduino reads this filtered signal.

If signal is more than threshold and it means human is there or moving.

How to Build:

To build a Human Presence and Motion Sensor Circuit using Arduino follow the below mentioned steps for connections:

  • Collect all parts as shown in circuit diagram.
  • Use IC 7809 to give stable 9V DC to Arduino.
  • Connect STHS34PF80 sensor GND to Arduino GND.
  • Connect sensor 3.3V pin to Arduino 3.3V.
  • Connect sensor SDA to Arduino A0.
  • Connect sensor SCL to Arduino A5.
  • Place 100nF capacitor between 3.3V and GND.
  • Connect 2.2k resistor between SDA and 3.3V.
  • Connect another 2.2k resistor between SCL and 3.3V.

Conclusion:

Arduino and STHS34PF80 sensor work together to detect human and motion.

We can change threshold and other settings for different uses.

This Human Presence and Motion Sensor Circuit using Arduino is useful for projects like smart home, safety system and interactive setup.

References:

Human presence detection – short distance

Filed Under: Arduino Projects, Sensors and Detectors

About Admin-Lavi

Lavi is a B.Tech electronics engineer with a passion for designing new electronic circuits. Do you have questions regarding the circuit diagrams presented on this blog? Feel free to comment and solve your queries with quick replies

Previous Post: « Reverse Car Parking Sensor Circuit using IC LM358
Next Post: Building a Smart Pet Feeder Circuit using Arduino »

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar




Categories

  • Alarm Circuits (34)
  • Amplifier Circuits (67)
  • Arduino Projects (58)
  • Audio Circuits (98)
  • Automobile Circuits (19)
  • Battery Charger Circuits (49)
  • Free Energy (13)
  • Heater and Temperature Controllers (10)
  • High Voltage (1)
  • Indicator Circuits (40)
  • Inverter Circuits (14)
  • LDR Circuits (17)
  • LED and Lamps (117)
  • Meters and Testers (28)
  • Motor Controllers (18)
  • Oscillator Circuits (34)
  • Power Supply Circuits (92)
  • Remote Control Circuits (7)
  • Security and Protection (26)
  • Sensors and Detectors (97)
  • Solar Circuits (17)
  • Timer Circuits (30)
  • Transistor Circuits (57)
  • Transmitter Circuit (14)
  • Tutorials (5)
  • Water Level Controller (4)

Recent Posts

  • Audio Spectrum Analyzer Circuit using IC MSGEQ7
  • RGB LED Color Control Circuit with LDR and Arduino
  • Arduino Based GPS Digital Clock Circuit
  • Small UPS Circuit for Router Backup
  • Sound Activated LED Circuit with Arduino

Recent Comments

  1. Admin-Lavi on Constant Voltage, Constant Current Battery Charger Circuit
  2. Bill on Constant Voltage, Constant Current Battery Charger Circuit
  3. Admin-Lavi on Long Range FM Transmitter Circuit (2km)
  4. Sina on Long Range FM Transmitter Circuit (2km)
  5. Admin-Lavi on Long Range FM Transmitter Circuit (2km)

Copyright © 2025 | New Circuit Ideas