Sparky's giveaways › 2026-12

ESP32-S3 DS18B20 Wi-Fi temperature sensor

Free PlatformIO project: an ESP32-S3-DevKitC-1-N16R8 reads a DS18B20 probe and graphs it on your free homeautomation.com dashboard.

Platform: ESP32-S3 / PlatformIO

Sparky's first real giveaway! A complete, ready-to-build PlatformIO project that reads a DS18B20 temperature probe on an ESP32-S3-DevKitC-1-N16R8 and graphs it on your free homeautomation.com device dashboard. No code edits needed: the board has its own Wi-Fi setup page - join the Sparky-Setup-XXXX network with your phone, pick your Wi-Fi, paste your device key, done.

What's in the zip

  • platformio.ini set up for the N16R8 (16 MB flash, 8 MB octal PSRAM, qio_opi), libraries pinned
  • src/main.cpp - phone-based Wi-Fi setup (captive portal), reads the sensor every 30 s, posts over verified HTTPS, read-only status page at sparky-XXXX.local
  • web/portal.html - the setup page source (about 15 KB, works with no internet) plus the generator and a desktop preview tool
  • include/secrets.example.h - optional compile-time fallback (the phone setup is the default)
  • WIRING.md + wiring.svg - pin table and diagram
  • LICENSE (PolyForm Noncommercial 1.0.0) and NOTICE

Wiring in 10 seconds

DS18B20 ESP32-S3
VDD (red) 3V3
GND (black) GND
DATA (yellow) GPIO4 + 4.7 kΩ pull-up to 3V3

Full parts list, wiring diagram, setup-page screenshots and LED colour codes: project page. Don't want to compile anything? You can also flash the prebuilt firmware from Chrome or Edge.

Never used PlatformIO?

Follow the PlatformIO getting-started guide - Windows, macOS and Linux, including which of the S3's two USB ports to use.

Then

  1. Create a free account and add a device to get its key (do this first - your phone has no internet while it is on the setup network).
  2. Build and upload (or flash from your browser), then join Sparky-Setup-XXXX with your phone and enter Wi-Fi + key.
  3. Watch your temperature graph update every 30 seconds. Hold the BOOT button for 5 seconds to run setup again.

License

Released under the PolyForm Noncommercial License 1.0.0: free for personal, hobby and educational use. Commercial use needs a license - get in touch. The full official text is in the zip (LICENSE) and at polyformproject.org.

Required Notice: Copyright (c) 2026 NetMedia, Inc. (homeautomation.com)

Get the free code

Enter your email and Sparky will unlock the download right here. 1 file(s) included.

We use your email to deliver this download and, only if you tick the box, our newsletter. See our privacy policy.