IoT-Enabled Smart Climate Monitoring System Using Raspberry Pi Pico W and ThingSpeak

Table of Contents
Abstract
In this project, we build an IoT-enabled smart climate monitoring system using Raspberry Pi Pico W, a temperature and humidity sensor, and a 16×2 I2C LCD display. The system shows real-time sensor readings locally on the LCD and remotely on the ThingSpeak cloud platform, enabling both on-device monitoring and cloud-based visualization, making this system useful for home automation, weather tracking, and IoT learning applications.
Hardware Required
🛠️
Get the right hardware kit
Raspberry Pi Pico, Arduino, sensors, and IoT maker essential Kits—perfectly matched for your learning.
Explore Hardware →
Raspberry Pi Pico, Arduino, sensors, and IoT maker essential Kits—perfectly matched for your learning.
- Raspberry Pi Pico W / Pico 2W.
- DHT 11/22 sensor.
- BreadBoard.
- Micro USB Cable.
- Connecting wires.
- 5V DC power supply (Optional)
| Components | Purchase Link |
|---|---|
| Raspberry Pi Pico W | link |
| Raspberry Pi Pico 2W | link |
| DHT 11/22 sensor | link |
| 128x64 OLED display | link |
| BreadBoard / PCB | large : small |
| Connecting Wires | link |
| Micro USB Cable | link |
| 5V DC Adaptor | link |
Connection Table
| DHT 11/22 | GPIO | Remarks |
|---|---|---|
| VCC (1) | +5 V | +5V of Board or External 5V DC Supply |
| Data (2) | 21 | Any GPIO pin can be used |
| NC (3) | - | No Connection |
| GND (4) | GND | Ground |
| 16x2 I2C LCD | GPIO | Remarks |
|---|---|---|
| GND (1) | GND | Ground |
| VCC (2) | +5 V | +5V of Board or External 5V DC Supply |
| SCL (3) | 3 | I2C0 series SCL pin |
| SDA (4) | 2 | I2C0 series SDA pin |
Note
- Instead of a DHT11 or DHT22 sensor, you may use the BME280 sensor for improved accuracy and additional environmental data.
- The BME280 can measure:
- Temperature
- Humidity
- Atmospheric Pressure
- For simple projects you can also use 16x2 LCD display.

fig-Connection Diagram
Setup ThingSpeak Channel
- Create a ThingSpeak account and log in
link.

- Go to Channels → My Channels → New Channel.

- Name your channel (e.g., “Smart Climate Monitor”).
- Add fields for Temperature and Humidity.

- Save and note down your Write API Key — you’ll need this in your code.

Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 | |
Simulation
Not able to view the simulation
- Desktop or Laptop : Reload this page ( Ctrl+R )
- Mobile : Use Landscape Mode and reload the page
Results and Visualization
🛠️
Get the right hardware kit
Raspberry Pi Pico, Arduino, sensors, and IoT maker essential Kits—perfectly matched for your learning.
Explore Hardware →
Raspberry Pi Pico, Arduino, sensors, and IoT maker essential Kits—perfectly matched for your learning.
After running the script:
- Your channel on ThingSpeak will start displaying live data graphs for temperature and humidity.
- These graphs update automatically as your Raspberry Pi Pico W sends new values.
- You can also embed or share the dashboard for remote monitoring.
Applications
This system can be used for:
- Home environment monitoring
- Greenhouse condition tracking
- Weather station projects
- IoT learning and experimentation
This Project can be enhanced by integrating alerts, or adding additional sensors such as pressure or air quality units.

