

Healthy Temp
IoT Temperature & Humidity Monitoring System
Project Overview
Healthy Temp is an advanced IoT monitoring system designed for pharmaceutical storage facilities. It provides real-time temperature and humidity monitoring using DHT22 sensors, ensuring compliance with pharmaceutical storage regulations and preventing product degradation due to environmental conditions.
DHT22 Sensor Technology
Precision Environmental Monitoring
The DHT22 is a high-precision digital temperature and humidity sensor that forms the backbone of our monitoring system. With its reliable performance and cost-effectiveness, it provides pharmaceutical-grade environmental monitoring.

DHT22 Temperature & Humidity Sensor
Technical Specifications
- Temperature Range: -40°C to 80°C with ±0.5°C accuracy
- Humidity Range: 0-100% RH with ±2-5% accuracy
- Digital signal output via single-wire protocol
- Low power consumption: 2.5mA during measurement
- Fast response time: 2 seconds for readings
- Long-term stability and reliability in pharmaceutical environments
Why DHT22 for Pharmaceutical Storage
- Medical-grade accuracy suitable for temperature-sensitive medications
- Pre-calibrated sensors require no field calibration
- Digital output eliminates analog signal degradation
- Resistant to interference in industrial environments
- Cost-effective solution for multi-zone monitoring
- Proven track record in pharmaceutical cold chain monitoring

DHT22 Temperature & Humidity Sensor
Real-Time IoT Communication
Sensors communicate via MQTT protocol through ESP32 microcontrollers, providing sub-second updates to the central monitoring system with automatic retry and buffering mechanisms for network resilience.
DS18B20 Temperature Sensor
High-Precision Digital Temperature Measurement
The DS18B20 is a digital temperature sensor offering superior accuracy and reliability. With its 1-Wire protocol, multiple sensors can be connected to a single data line, making it ideal for multi-point temperature monitoring in pharmaceutical cold chain applications.

DS18B20 Digital Temperature Sensor
Technical Specifications
- Temperature Range: -55°C to +125°C with ±0.5°C accuracy
- Programmable resolution from 9-bit to 12-bit
- 1-Wire digital interface - unique 64-bit serial code
- Power supply: 3.0V to 5.5V or parasitic power mode
- Conversion time: 750ms at 12-bit resolution
- No external components required - waterproof probe available
Why DS18B20 for Cold Chain Monitoring
- Pharmaceutical-grade accuracy for critical temperature control
- 1-Wire bus allows multiple sensors on single cable - reduced wiring costs
- Each sensor has unique address - individual identification and tracking
- Waterproof probes available for refrigerator and freezer monitoring
- Wide operating range perfect for both ambient and frozen storage
- Industry-proven reliability in medical and pharmaceutical applications

DS18B20 Waterproof Temperature Probe
1-Wire Bus Network Architecture
Multiple DS18B20 sensors connect to a single microcontroller pin using the 1-Wire protocol. Each sensor has a unique 64-bit ROM code for individual addressing, enabling precise multi-point temperature monitoring across refrigerators, freezers, and ambient storage areas with minimal wiring complexity.
Custom-Designed IoT Board
Full-Stack Hardware & Software Integration
Designed and built from scratch with passion for electronics. This custom PCB represents months of iteration, combining my expertise in hardware design, embedded programming, and full-stack development to create a complete IoT monitoring solution.

Custom IoT Monitoring Board - Complete Design

PCB Layout and Component Placement
Hardware Design & Engineering
- Custom PCB design with optimized sensor connections and power management
- ESP32 microcontroller for WiFi connectivity and sensor interfacing
- Support for both DHT22 and multiple DS18B20 sensors on single board
- Efficient power supply design with voltage regulation for stable operation
- Compact form factor designed for pharmaceutical storage environments
- Professional PCB manufacturing with industrial-grade components
Full-Stack Integration
- Embedded firmware written in C/C++ for sensor data collection
- MQTT protocol implementation for reliable IoT communication
- Real-time data streaming to NestJS backend via WebSocket
- React frontend dashboard displaying live sensor readings
- Complete data flow: Hardware → Firmware → Backend → Frontend → User
- Seamless integration between electronics and web technologies

Assembled Board with Sensor Connections
A Labor of Love
This project represents my deep passion for electronics and full-stack development. From schematic design to PCB layout, from firmware programming to backend integration, every aspect was crafted with care. The joy of seeing sensors communicate with cloud servers, watching real-time data flow through the entire stack - this is where hardware meets software, and passion meets precision.

WiFi-Enabled Board with DS18B20 Sensor Integration
Wireless Data Transmission
The board features built-in WiFi connectivity via ESP32, enabling real-time data transmission from DS18B20 temperature sensors directly to the NestJS backend. Sensor readings are collected every 2 seconds, transmitted over MQTT protocol, and instantly displayed on the React dashboard - showcasing seamless integration between embedded hardware, IoT protocols, and modern web technologies.
Zone Management & Configuration
Intelligent Area Control & Sensor Assignment
Comprehensive zone management system allowing administrators to organize sensors into logical monitoring areas. Each zone can represent different storage rooms, refrigerators, or freezer units, with individual temperature thresholds and alert configurations.

Area Control Dashboard - Monitor All Zones
Monitor & Control Areas
- Visual dashboard showing all configured monitoring zones
- Real-time temperature readings for each area with sensor count
- Individual threshold settings for temperature alerts per zone
- Quick status overview: active sensors, alert status, last update time
- Easy zone activation/deactivation for maintenance
- Historical data access and trend analysis per monitoring area
Add New Monitoring Zone
- Simple interface for creating new monitoring areas
- Assign custom names and descriptions to zones
- Configure temperature min/max thresholds per zone
- Assign multiple sensors to a single monitoring area
- Set alert notification preferences (SMS, Email, Push)
- Define zone-specific compliance requirements and reporting

Add New Monitoring Area - Zone Configuration
Flexible Zone Configuration
The system supports unlimited monitoring zones, each with independent configuration. Whether managing a single cold storage room or multiple pharmaceutical warehouses across different locations, the zone management system scales effortlessly while maintaining precise control and compliance reporting for each area.
Live Monitoring Dashboard
Advanced visualization dashboard displaying real-time gauge readings for area temperature and humidity, along with individual DS18B20 sensor status across the monitoring zone. Each sensor is represented with mini gauges showing precise temperature values updated every 2 seconds via WebSocket.

Live Monitoring Dashboard - Area Gauges & Sensor Spread
Area Environmental Gauges
- Large circular gauges displaying average temperature and humidity for the entire monitoring zone
- Color-coded indicators: Green (normal), Yellow (warning), Red (critical) based on thresholds
- Real-time updates via WebSocket connection with smooth gauge animations
- Min/Max indicators showing acceptable range boundaries
- Historical trend mini-charts below main gauges for quick analysis
- Alert status badge showing current compliance state
DS18B20 Sensor Spread View
- Visual representation of all DS18B20 sensors distributed across the monitoring area
- Individual mini gauges for each sensor showing precise temperature readings
- Geographic layout reflecting actual sensor placement in the storage facility
- Sensor status indicators: Active (green), Warning (yellow), Offline (gray)
- Quick identification of temperature variations across different locations
- Click individual sensors for detailed historical data and settings
Real-Time Precision
The monitoring dashboard provides instant visibility into environmental conditions across your entire facility. With WebSocket-powered live updates and individual sensor tracking, you can identify temperature fluctuations immediately and take corrective action before product quality is compromised. The combination of area-wide gauges and individual sensor displays gives you both macro and micro-level insights.
Historical Analytics & Data Visualization
Comprehensive historical analytics with real-time charting capabilities. The system records sensor readings every 2 seconds and provides interactive charts for second-by-second and daily analysis. Instantly identify temperature or humidity drops, spikes, and trends with powerful visualization tools designed for compliance and quality control.

Analytics Dashboard - Real-Time Charts with Per-Second & Daily Views
Real-Time & Historical Charts
- Interactive line charts displaying temperature and humidity readings updated every 2 seconds
- Zoom and pan functionality to examine specific time periods in detail
- Per-second granularity for immediate drop detection and anomaly identification
- Daily, weekly, and monthly aggregated views for trend analysis
- Multi-sensor overlay: compare readings from different sensors simultaneously
- Export chart data to CSV/Excel for compliance reporting and analysis
Advanced Data Analysis
- Statistical analysis showing min, max, average values per period
- Trend detection algorithms identifying gradual temperature drift
- Anomaly highlighting for unusual patterns or sudden changes
- Time-range comparison: compare current week vs previous weeks
- Customizable chart views with adjustable time windows
- Downloadable reports with charts and statistics for audits
Data-Driven Decision Making
Transform raw sensor data into actionable insights with powerful analytics tools. By visualizing per-second readings alongside daily trends, you can identify gradual deterioration or sudden equipment failures before they compromise product quality. Historical data provides irrefutable proof of compliance for regulatory audits and quality assurance processes.
Intelligent Alarm System
Advanced alarm system that monitors all sensors continuously and triggers instant notifications when thresholds are breached. Configure custom alert rules per zone, set escalation policies, and receive notifications via SMS, email, or push alerts. Never miss a critical event that could compromise product safety or regulatory compliance.

Alarm Dashboard - Active Alerts & Notification Management
Configurable Alert Rules
- Set min/max temperature and humidity thresholds per sensor or zone
- Configurable alarm delay to prevent false alerts from transient readings
- Multiple severity levels: Warning, Critical, Emergency
- Time-based rules: different thresholds for day/night operations
- Zone-specific alert configurations for different storage requirements
- Bulk threshold management for multiple sensors simultaneously
Multi-Channel Notifications
- Instant visual and audible alarms on the dashboard
- SMS text messages to designated personnel phones
- Email alerts with detailed sensor information and charts
- Mobile push notifications via dedicated app
- Alarm history log with timestamps and resolution tracking
- Escalation policies: auto-notify supervisors if unacknowledged
Immediate Response to Critical Events
The alarm system ensures instant response to critical events - whether it's a refrigerator malfunction, door left open, or power outage. With temperature/humidity drop rate detection, you can identify rapid changes that indicate equipment failure. Multi-channel notifications ensure the right people are alerted immediately, minimizing product loss and maintaining compliance.
Key Features
Real-Time Monitoring
Live temperature and humidity data from multiple sensors with WebSocket updates every 2 seconds
Multi-Zone Coverage
Monitor multiple storage rooms, refrigerators, and freezers simultaneously with dedicated sensor networks
Smart Alerting
Instant notifications via SMS, email, and mobile push when thresholds are breached
Historical Analytics
Comprehensive data logging with interactive charts showing temperature and humidity trends over time
Compliance Reporting
Automated regulatory compliance reports for pharmaceutical storage standards (WHO, FDA guidelines)
MQTT Protocol
Lightweight IoT messaging protocol ensuring reliable sensor communication even in low-bandwidth scenarios
System Architecture
Frontend

React 18
Modern UI with real-time updates

TypeScript
Type-safe development
Vite
Fast development and build

TanStack Query
Server state management

Chart.js
Interactive temperature/humidity charts
Socket.io Client
Real-time data streaming
Tailwind CSS
Responsive dashboard design

Radix UI
Accessible components
Backend & IoT

NestJS
Scalable Node.js framework

TypeScript
Type-safe server code
MongoDB
Time-series sensor data storage
Socket.io
Real-time client updates
MQTT
IoT sensor communication protocol
Redis
Real-time data caching
DHT22 Sensors
Temperature & humidity sensing
ESP32/Arduino
Sensor microcontrollers
Technical Challenges & Solutions
Sensor Data Reliability
Solution: Implemented redundant sensors with automatic failover and data validation algorithms to detect faulty readings
Real-Time Alert Delivery
Solution: Built multi-channel notification system with fallback mechanisms ensuring critical alerts are never missed
Data Storage Optimization
Solution: Designed time-series data aggregation strategy reducing storage by 70% while maintaining compliance data
Network Reliability
Solution: Implemented offline buffering in sensors and automatic reconnection protocols for unstable networks