user-img

FUSION AUTOMATE

  • 7 Projects
  • 3 Followers
  • Oct 31,2025
+ Follow

Pico W MQTT: Publish Internal Temperature to HiveMQ

A MicroPython script for Raspberry Pi Pico W that reads the onboard temperature sensor and publishes the data to an MQTT broker over Wi-Fi.

Pico W MQTT: Publish Internal Temperature to HiveMQ
 
  • thumbnail-img
 

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.

Code
  • Micropython Code

    MQTT_Temperature_6351589006903a2c54bc7b.zip
    Download(0)
Topic
View All

Pico W MQTT: Publish Internal Temperature to HiveMQ

A MicroPython script for Raspberry Pi Pico W that reads the onboard temperature sensor and publishes the data to an MQTT broker over Wi-Fi.

41
 
2
0
0
These revenues will go back into supporting creators, contests, and the open source ecosystem, and more.

Share your project on social media to expand its influence! Get more people to support it.

  • Comments( 0 )
  • Like( 2 )
/1000
Upload a photo:
You can only upload 1 files in total. Each file cannot exceed 2MB. Supports JPG, JPEG, GIF, PNG, BMP

You May Also Like

View All
Add to cart
Board Type : GerberFile :
Layer : Dimensions :
PCB Qty :
Different PCB Design
PCB Thickness : PCB Color :
Surface Finish : Castellated Hole :
Copper Weight : 1 oz Production Time :
Total: US $
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.

PCB Assembly

PCBA Qty: BomFile:
NO. OF UNIQUE PARTS: NO. of Components:
Country: Shipping Way:
Assembly Cost: US $
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
3dPrintingFile : Size :
Unit : Volumn :
3D Printing Qty : Material :
Total: US $12.99
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
Acrylic Type : AcrylicFile :
Dimensions: Engrave:
Acrylic Qty :
Acrylic Thickness:
Acrylic Color:
Total: US $12.99
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
CNC Milling File : Size:
Unit: Volumn:
CNC Milling Qty : Material:
Type of Aluminum: Surface Finish:
Tolerance:
Surface Roughness:
Total: US $12.99
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
Item Price Qty Subtotal Delete
Total: US $0.00
Certified Product | Guaranteed Purchase: Full techsupport