Sensor Data Logger With Daily Email Reports (No Coding Required)
by KimY21 in Circuits > Arduino
33 Views, 1 Favorites, 0 Comments
Sensor Data Logger With Daily Email Reports (No Coding Required)

Introduction
This tutorial shows how to build a 24/7 automated temperature and humidity logging system in 10 minutes using drag-and-drop blocks. The system continuously logs BME280 sensor data every minute and automatically emails you a complete daily report at midnight.
Building automated data logging systems traditionally requires complex programming: implementing sensor communication protocols, managing file I/O operations, handling timestamp formatting, scheduling email tasks, configuring SMTP clients, and coordinating all these components. With Grablo, you simply arrange visual blocks to make it happen.
What You'll Build
A complete 24/7 automated data logging system featuring:
- Temperature & humidity measurement every minute with BME280 sensor
- Automatic daily file creation with date-based naming
- Timestamped CSV data format ready for Excel/spreadsheet analysis
- Scheduled email delivery at midnight with data attachment
- Runs independently 24/7 after setup
- Zero lines of code required
Supplies

Required Components
- Raspberry Pi (or BeagleBone, Jetson Nano, PC with USB-GPIO such as FT232H)
- BME280 Temperature & Humidity Sensor (I2C interface)
- Jumper wires
- Email account with SMTP support (Gmail, Outlook, etc.)
Wiring
BME280 Sensor (I2C):
- VCC → 3.3V (Pin 1)
- GND → GND (Pin 6)
- SCL → GPIO 3 (Pin 5)
- SDA → GPIO 2 (Pin 3)
⚠️ Important Notes:
- Use 3.3V, NOT 5V - BME280 is a 3.3V sensor
- BME280 I2C address is either 0x76 or 0x77 - check your module's specifications
Quick Start
- Install software: Download and install Grablo software on your controller hardware
- Set up hardware: Wire BME280 sensor according to circuit diagram above
- Get this project: Project Link
- Connect controller: In your project, go to "Connect Controller" and enter IP address
- Configure email: Go to Project Settings > Email Client and configure SMTP settings
- Hit RUN: Your automated logging system is now running!
💡 Want to build it yourself? Skip to Step 2 and follow the detailed tutorial
Create Project
- Go to https://app.grablo.co
- Click "Create Project"
- Give your project a name
Control 1 - Periodic Data Collection

Create a logic and control that reads sensor data every minute
- Condition (Periodic): Every 1 minute (60 seconds)
- This triggers our data collection every 60 seconds
- Action 1 (I/O Device Control): Read BME280 sensor
- Device: BME280 Temperature & Humidity Sensor
- I2C Address: 0x76 or 0x77 (check your module's datasheet)
- Command: Read Data
- Store temperature in variable: Temperature
- Store humidity in variable: Humidity
- Action 2 (Read/Write File): Append data to CSV file
- Create new file editor
- Command: Append (adds new data without overwriting)
- File Path: Use block editor to create dynamic path
- Write Content: Use block editor to format CSV line
Control 2 - Midnight Email Delivery

Create a control inside Control 1 that sends yesterday's file at midnight
- Condition (Time Range): 00:00 to 00:05
- Option: Rising Edge (triggers only once when midnight arrives)
- Action (Send Email): Email yesterday's data file
- Email Client: Create new SMTP client
- Recipient: Your email address
- Subject: "Daily Sensor Report"
- Message Body: "Attached is yesterday's temperature and humidity data."
- Attachment Path: Use block editor
Launch Your Project
That's It - You're Done!
Congratulations! You've just built a complete 24-hour automated data logging system using only 2 simple controls and zero lines of code. This is the power of visual programming with Grablo - what traditionally requires complex file handling, scheduling, and email programming is now accomplished with intuitive drag-and-drop blocks.
Expected Results
When you run your project:
- Every minute: BME280 sensor reads temperature and humidity
- Data logging: New readings appended to today's CSV file with timestamps
- At midnight: Previous day's complete data file automatically emailed
- New day: New CSV file created automatically
- CSV format: Easy to open in Excel, Google Sheets, or any spreadsheet software
Example CSV content:
Run Your Project:
- Install software: Download and install Grablo software on your Raspberry Pi
- Set up hardware: Wire BME280 sensor according to circuit diagram
- Connect controller: In your project, go to "Connect Controller" and enter IP address
- Go to Project Settings > Email Client and configure email settings (SMTP server, password)
- Hit RUN
Video Tutorial

Watch the complete build process in action! This 7-minute video demonstrates every step from hardware setup to email configuration and launching your automated logging system.
Expand Your Project
Add more functionality with additional blocks:
- Multiple sensors: Add more BME280 sensors for multi-room monitoring
- Data analysis: Add blocks to calculate daily average, min, max values in email
- Alert conditions: Send immediate emails when temperature/humidity exceeds thresholds
- Weekly reports: Compile 7 days of data into weekly summary emails
Troubleshooting
- Sensor not detected: Verify I2C wiring, check I2C address with i2cdetect -y 1 command
- Email not sending: Verify SMTP credentials, check internet connection, confirm firewall settings
- Wrong I2C address: Try both 0x76 and 0x77 in device settings
- Missing attachment: Verify file path in email block matches logging file path exactly
Resources
- Official Website: https://grablo.co
- Get started: https://app.grablo.co
- Documentation: https://doc.grablo.co
- Support: support@grablo.co