The ESP32 is an inexpensive microcontroller with Wi-Fi and Bluetooth. Add it to the Arduino IDE through the Boards Manager and it can send sensor data to a server or Home Assistant.
#include <WiFi.h> void setup() { Serial.begin(115200); WiFi.begin("your-wifi", "your-password"); while (WiFi.status() != WL_CONNECTED) { delay(500); Serial.print("."); } Serial.println(WiFi.localIP()); } void loop() {}