Kiln Watch for ESP32-WROOM-32
This project provides the means automate the monitoring of kiln temperatures using simple breakout boards connected to a type K thermocouple.
Parts and sourceBefore you start
Confirm board compatibility and supported firmware targets in the upstream documentation.
Upstream README
kiln-watch
This project provides the means automate the monitoring of kiln temperatures using simple breakout boards connected to a type K thermocouple.
Problem
Monitor a gas fired kiln at multiple kiln positions to better assess the progression of the firing process and manually adapt as required. The kiln is located outdoors making manual observation over long periods inconvenient.
Goals
- Create a sensor at the kiln that is able to:
- Connect to the local network using WiFi.
- Capture the kiln temperature.
- Broadcast the kiln temperature over the local network at regular intervals.
- Create a network service on the local network that is able to:
- Capture the network broadcasts and decode the temperature readings of one or more sensors
- Present the temperature readings to a user in graph form (Temperature / Time)
- Present the ramp temperature ( Temperature change / Hour), update interval 15 min
- Provide a web interface
Constraints
- The project members each have differing levels of skills, yet the solution must at lest be maintainable by the least capable team member. As such, simplicity and re-use of existing capabilities are of utmost importance.
Solution Overview

The solution consists of three parts:
- kiln-watch-service
- Connected to the WiFi network and listens for UDP sensor reports and web browser requests.
- kiln-watch-sensor
- Monitors temperatures via a thermocouple amplifier and broadcasts (UDP) temperature reports to the WiFi network.
- web browser
- Connected to the WiFi network it requests a web page from the kiln-watch-service.
Software Prerequisites
The following software packages are required to build and install the service and sensor:
Install esptool:
% pip install esptool
Install rshell:
% sudo apt install pyboard-rshell
Sensor
The sensor is constructed from the following bill of materials and connected according to the wiring instructions.
Bill of Materials
- 1 x ESP32 WROOM-32 Type-C CH340C Development Board
- 1 x Thermocouple Amplifier MAX31856
- 1 x Type K Thermocouple and wire
- 1 x Jumper Wires
ESP32 Pinout

MAX31856 Pinout

Wiring Instructions
| ESP32 Pin | Description | MAX31856 Pin |
|---|---|---|
| VIN | Input voltage | VIN |
| N/A | Not used | 3Vo |
| GND | Ground | GND |
| D18 (VPSI SCK) | connects to the SPI clk_pin | SCK |
| D19 (VSPI MISO) | connects to the SPI miso_pin | SDO |
| D23 (VSPI MOSI) | connects to the SPI mosi_pin | SDI |
| D22 (GPIO22) | connects to a free GPIO pin | CS |
| N/A | Not Used | FLT |
| N/A | Not Used | DRDY |
| connects to the thermocouple positive lead | (+) | |
| connects to the thermocouple negative lead | (-) |
Wiring completed

For the final configuration a custom circuit board was created to improve durability.

Install firmware
From the directory: kiln-watch-sensor
The firmware for the ESP32 device is based on micropython
The instructions here are given for Ubuntu 22.04.5 LTS.
Install prerequisites:
% sudo apt update
% sudo apt install python3 python3-pip python3.10-venv
Ensure the user (john) is a member of the dialout group:
% id
uid=9000(john) gid=9000(john) groups=9000(john),20(dialout)
If the dialout group is not assigned to the user (john), added it:
% sudo usermod -a -G dialout john
% newgrp dialout
Edit the configuration file, config.json.
Specifically, edit the ssid and wifi_password to enable connection to your WiFi network.
{
"ssid" : "your_ssid_here",
"wifi_password" : "your_wifi_password_here",
"name" : "kiln_watch",
"index" : "0",
"http_port" : 80,
"udp_port" : 23464,
"hostname" : "kiln-watch-service"
}
For multiple sensors, the index and name should be unique for each sensor.
Plug the ESP32 device into an available USB port and verify the device is created:
% ls -la /dev/ttyUSB*
Download the Micropython bin image from https://micropython.org/download/ESP32_GENERIC/ Edit the Makefile to set the location of the Micropython image and the USB device:
IMAGE=../ESP32_GENERIC-20251209-v1.27.0.bin
PORT=/dev/ttyUSB0
Compile and flash the firmware to the ESP32 device:
% make
Test the firmware installation
Reboot the ESP32 device (press boot button, or disconnect and reconnect USB connection).
At this point the ESP32 should be broadcasting messages every 10 seconds onto the local network over WiFi. We can check this using the udp_listen.py script. However, first we must check the status of the firewall on the local system.
Determine if the firewall is enabled:
% sudo ufw status
If the firewall is active, we must create a rule to allow it to pass through UDP packets on port 23464.
% sudo ufw allow 23464/udp
Now, run the udp_listen.py script and wait for updates about every 10 seconds:
% python3 udp_listen.py
Listening for UDP broadcasts on port 23464...
KW,kiln_watch_0,0,24
KW,kiln_watch_0,0,24
KW,kiln_watch_0,0,24
The broadcast data is comma delimited with each position containing:
| Position | Description |
|---|---|
| 0 | Always KW to identify the packet as a kiln-watch packet |
| 1 | The device_name as specified in the kiln-watch.yaml file. |
| 2 | The device_index as specified in the kiln-watch.yaml file. |
| 3 | The measured temperature in Celsius. |
Service
The Kiln Watch Services runs on another ESP32 board, listens for client broadcasts, then presents a web site that presents the status of all clients.
Bill of Materials
Install the firmware
From the kiln-watch-service directory:
Download the Micropython SPIRAM bin image from https://micropython.org/download/ESP32_GENERIC/
Edit the Makefile to set the location of the Micropython image and the USB device:
IMAGE=../ESP32_GENERIC-SPIRAM-20251209-v1.27.0.bin
PORT=/dev/ttyACM0
Compile and flash the firmware to the ESP32 device:
% make
Application View
When the service device is turned on, it connects to the local WiFi and exposes a web application at the following URL:
% firefox http://kiln-watch-service.local
The application contains a single page with the following three sections:



All sections are updated every 60 seconds with the line graphs proceeding right to left.