Open firmware for ESP32 & ESP8266. Monitor CO₂, pH, O₂, temperature, humidity and more — over Wi‑Fi & MQTT, with a built-in web portal, live dashboard and calibration wizards.
Download Flash Kit v2.3.0AutoSense Sensor Portal is firmware for ESP32 and ESP8266 microcontrollers. Every sensor is a plugin: switch it on in the built-in web portal, set its pins there, and its readings appear on the live dashboard, on the OLED and over MQTT — no config files, no reboot. Dashboards and hubs discover what each device can do through its MQTT capability manifest.
DHT11/22, BME688, DS18B20, MQ135 CO₂, MQ‑9 CO, MiCS‑5524, DFRobot O₂, pH, TDS, TCS3200 colour sensor, HC-SR04 ultrasonic distance & level sensor and an OLED display. Switch them on in the portal; changes apply immediately.
Live dashboard with trends and sensor status, module settings checked as you type, I²C scanner, light & dark mode. Works on your phone.
Step-by-step calibration for pH, MQ135, MQ‑9 and MiCS‑5524: waits for a stable value, shows the result before saving. Also available from your MQTT hub.
Publishes every reading with its unit and the device location you set in the portal, plus a retained capability manifest, so dashboards auto-discover commands and calibration workflows. One switch adds the board and all its sensors to Home Assistant automatically (and from there to Alexa or Google Home).
Update the firmware and the web portal over Wi‑Fi — no USB needed. Settings from 1.x are imported automatically.
A new sensor is one C++ file. Describe its settings and readings; the portal, OLED and MQTT are generated for you.
Autosense Wi‑Fi (password: Autosense); the portal opens by itself, or go to
http://192.168.4.1:1980. Enter your Wi‑Fi and MQTT details under Settings.
You need Python 3, then install esptool:
pip install esptool
# Windows — Device Manager → Ports (COM & LPT) COM5 # macOS ls /dev/cu.* # e.g. /dev/cu.usbserial-0001 # Linux ls /dev/ttyUSB* # e.g. /dev/ttyUSB0
Windows — double-click and enter your COM port when prompted:
flash_esp32.bat # for ESP32 boards flash_esp8266.bat # for ESP8266 / NodeMCU
macOS / Linux:
chmod +x flash_esp32.sh flash_esp8266.sh ./flash_esp32.sh # ESP32 ./flash_esp8266.sh # ESP8266 / NodeMCU
Connecting….The script writes the firmware and the web portal in one go.
WiFi network : Autosense Password : Autosense Browser URL : http://192.168.4.1:1980
Press RESET and join the Autosense Wi‑Fi;
the portal opens by itself. Open Settings, enter your Wi‑Fi, MQTT broker and
device name, save, then click Reboot now. The device joins your network at
http://<device-name>.local:1980.
Finally open Modules and switch on the sensors you have connected — they start immediately.
http://<device-name>.local:1980
# or use the device IP from your router
http://<device-name>.local:1981/update
Log in with the web admin credentials.
# ESP32 boards bin/esp32/firmware.bin # ESP8266 / NodeMCU bin/esp8266/firmware.bin
Wait about 30 seconds — the device reboots on the new firmware.
firmware.bin is needed here. Bootloader and partition files are only
required for Section A (USB flash).The 2.0 portal is three files in the kit’s data/ folder. Run the script and enter
the
device address and admin password:
update_portal.bat # Windows ./update_portal.sh # macOS / Linux
Or upload them by hand, one at a time, at
http://<device-name>.local:1981/upload:
data/index.html.gz data/app.js.gz data/app.css.gz
Then reload http://<device-name>.local:1980 — no
reboot
needed. Use this step on its own whenever only the portal changes.
These are the factory-default credentials shipped with the firmware. Use them during first-time setup and firmware management.
Autosense
Autosense
Connect to this network on first boot to
access the setup page at http://192.168.4.1:1980.
admin
autosenseadmin@
Required for firmware updates at
:1981/update, portal files at :1981/upload (and the update_portal
script), and Factory reset in the portal.
Every module is listed on the portal’s Modules page. Switch it on, set its pins, I²C address and MQTT topic in its settings panel — changes apply immediately, with no reboot and no config file.
| Plugin ID | Sensor / Module | Bus | Calibration |
|---|---|---|---|
| P001 | OLED display (SSD1306) | I²C | — |
| P002 | DHT11 / DHT22 (temperature & humidity) | Digital | — |
| P003 | CO₂ (MQ135) | Analog | R0 in fresh air |
| P004 | DS18B20 (waterproof temperature) | 1‑Wire | — |
| P005 | O₂ (DFRobot electrochemical) | I²C | — |
| P006 | pH probe | Analog | Two buffers |
| P007 | TDS (water quality, temperature compensated) | Analog | — |
| P008 | CO (MQ‑9) | Analog | R0 in clean air |
| P010 | BME688 / BME680 (temperature, humidity, pressure, gas) | I²C | — |
| P011 | MiCS‑5524 (CO / ethanol / H₂) | Analog | R0 in clean air |
| P012 | TCS3200 (colour sensor: red / green / blue / clear, Hz) — contributed by Divya Prackash Ravi | Digital | — |
| P013 | HC-SR04 (ultrasonic distance & liquid level: distance, level, fill %) | Digital | — |
plugins.json from 1.x is no longer needed — modules are switched on in the portal.
Need support for a new sensor, or want to contribute your own hardware integration? AutoSense features an open, modular plugin architecture. You can request a new sensor or build and submit your own plugin to be evaluated and merged into official firmware releases.
Have a specific sensor or module you would love to see supported? Tell us the sensor model, communication protocol (I2C, SPI, UART, or Analog GPIO), and your use case.
Submit a sensor requestGet the plugin SDK, a test harness that runs your plugin on your own board, and working examples (DHT, BME688, pH with calibration) from the public Community repo. Check it, test it, open a pull request.
Get the plugin kit#include <AutoSensePlugin.h>
class P900 : public autosense::Plugin {
void describe(autosense::Descriptor &d) override {
d.info("SOIL", F("Soil moisture"), F("Capacitive soil probe"), autosense::Bus::Analog);
d.pin("adc_pin", F("Analog pin (GPIO)"), A0).adc1(); // -> settings form
d.mqtt(1, "SOIL/Value", "SOIL"); // -> MQTT topic
d.channel("moisture", F("Moisture"), "%", 0).oled(3, "SOIL").mqtt(1); // -> card, OLED, MQTT
}
void read(autosense::Context &ctx, autosense::Readings &out) override {
float raw = autosense::analogAverage((int)ctx.num("adc_pin"));
out.set("moisture", 100.0f - raw / autosense::adcMax() * 100.0f);
}
};
AUTOSENSE_REGISTER("P900", P900)
AutoSense_Flash_Kit_2.3.0/ ├── INSTRUCTIONS.md <- Step-by-step flashing & update guide ├── README.md <- User guide: portal, modules, MQTT ├── RELEASE_NOTES.md <- What’s new in 2.3.0 ├── MQTT_PLUGINS_MAP.md <- MQTT topics & payloads ├── flash_esp32.bat/.sh <- USB flash, ESP32 (firmware + portal) ├── flash_esp8266.bat/.sh <- USB flash, ESP8266 / NodeMCU ├── update_portal.bat/.sh <- Install the portal over Wi‑Fi ├── bin/ │ ├── esp32/ │ │ ├── bootloader.bin │ │ ├── partitions.bin │ │ ├── boot_app0.bin │ │ ├── firmware.bin <- Also the file for OTA updates │ │ └── littlefs.bin <- Web portal as LittleFS image │ └── esp8266/ │ ├── firmware.bin <- Also the file for OTA updates │ └── littlefs.bin <- Web portal as LittleFS image └── data/ <- Portal files for /upload or update_portal ├── index.html.gz ├── app.js.gz └── app.css.gz