Story
This MicroPython program connects a Raspberry Pi Pico W to a Wi-Fi network and periodically publishes its internal temperature readings to an MQTT topic (pico/w/temperature) on the public HiveMQ broker. It uses the onboard ADC channel to read the internal temperature sensor, converts the analog value into Celsius, and sends it every 5 seconds via MQTT. The script demonstrates Wi-Fi connectivity, sensor data acquisition, and MQTT-based IoT communication — a foundational setup for remote monitoring or IoT data logging projects.
 
    
 
                                         
                                         
                                         
                                         
                                         
                                         
                                         
                                         
                                         
                                         
                                        


 
                             
                             
                                                                                         
                                             
                                     
                             
                             
                             
                             
                     
                                                 
                                                 
                                         
                                                 
                                         
                                                 
                                         
                                                 
                                         
                                                 
                                         
                                         
                                                 
                                         
                                         
                                         
                                                 
                                         
                                         
                                                 
                                        
