Smart Lab Safety Monitoring System

by suman10 in Circuits > Electronics

21 Views, 0 Favorites, 0 Comments

Smart Lab Safety Monitoring System

image_2026-06-08_162729672.png

A Smart Lab Monitoring System helps monitor environmental conditions inside a laboratory using sensors connected to Quarky. The system continuously checks parameters such as temperature, humidity, light intensity, and gas leakage (depending on the sensors used) and displays the readings on the screen. This project introduces students to IoT, sensor integration, data monitoring, and automation using block-based coding.


PictoBlox Code file -https://drive.google.com/file/d/1EJHOEXKZjgFGs-c5jzhFVeen92-XdJMT/view?usp=drive_link

Supplies

Quarky-1

USB Cable-1

Computer/Laptop with PictoBlox-1

Temperature & Humidity Sensor -1

gas sensor-1

servo motor-2

motor-1

pir sensor or IR sensor

rfid sensor-1

Master RFID Tag

smart lab.png

First The program creates a Master RFID Tag. When the Space key is pressed, the RFID module is initialized and the user is asked to enter a name. The program repeatedly prompts the user to place an RFID tag near the reader. If a tag is detected, the entered name is written onto the RFID tag, the tag is assigned as the Master Tag, and the process ends. If no tag is detected, the program continues asking for a tag until a successful RFID tag creation occurs.

RFID-based Access Control System

smart lab 2.png

This program creates an RFID-based access control system using Quarky. When the Green Flag is clicked, the RFID module is initialized and the servo motor is set to its default locked position (90°). The system continuously scans for an RFID tag. If a valid RFID tag containing the authorized master tag information (e.g., "suman.") is detected, the servo motor rotates to 30° to unlock the door, waits for 3 seconds, and then returns to 90° to lock it again. If no RFID tag is detected within the specified time, an error symbol is displayed on the LED matrix, indicating unauthorized access or no tag detected.

Final

smart lab 3.png

This Smart Lab Monitoring System continuously checks the status of a Gas Sensor and a PIR (Motion) Sensor. When the Green Flag is clicked, the program starts monitoring the sensors in a forever loop.

  1. If the Gas Sensor connected to Pin A1 detects gas, the system:
  2. Plays an alert sound.
  3. Displays a warning symbol on the LED matrix.
  4. Runs the right motor at full speed for 1 second (which can be used to activate a fan or exhaust system).
  5. If no gas is detected, the system checks the PIR Sensor connected to Pin D3.
  6. When motion is detected, it displays a "Hello!" message on the LED matrix to welcome the person entering the lab.
  7. After each cycle, the system:
  8. Waits for 1 second.
  9. Clears the LED matrix display.
  10. Stops the motor.

This project demonstrates how a smart laboratory can monitor environmental safety using a gas sensor and detect human presence using a PIR sensor, providing alerts and automated responses when needed.