Latest Release · Release Notes

AutoSense
Sensor Portal

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.0

AutoSense_Flash_Kit_2.3.0.zip  ·  ESP32 & ESP8266  ·  Release Notes

ESP32 ESP8266 / NodeMCU MQTT Live Dashboard Calibration Wizard OTA Updates Plugin SDK

What is AutoSense?

AutoSense 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.

🔌

Multi-Sensor Support

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.

🌐

Web Portal

Live dashboard with trends and sensor status, module settings checked as you type, I²C scanner, light & dark mode. Works on your phone.

🧪

Calibration Wizards

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.

📡

MQTT & Home Assistant

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).

🔄

Wireless Updates

Update the firmware and the web portal over Wi‑Fi — no USB needed. Settings from 1.x are imported automatically.

🧩

Plugin SDK

A new sensor is one C++ file. Describe its settings and readings; the portal, OLED and MQTT are generated for you.

http://autosense.local:1980
AutoSense 2.0 dashboard: live temperature, humidity and oxygen cards, running modules and connectivity
The 2.0 dashboard — live readings, module status and connectivity at a glance.
💡
On first power-on, the device boots in Access Point (AP) mode. Connect to the 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.

Flash the Firmware

1

Install the flashing tool

You need Python 3, then install esptool:

pip install esptool
2

Connect the board via USB & find the port

# 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
3

Run the flash script

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
⚠️
If flashing does not start, hold the BOOT (or FLASH) button on the board until you see Connecting….

The script writes the firmware and the web portal in one go.

4

First boot — complete setup

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.

ℹ️
No cables needed — update over Wi‑Fi through the device itself. Coming from 1.x? Your Wi‑Fi, MQTT, enabled modules, pins and calibrations are kept and imported on the first boot of 2.0.0. Do both steps 3 and 4. Coming from 2.2.0 or earlier? 2.2.1 changes the MQTT message format, so check your hubs and dashboards first — see the release notes.
1

Find your device on the network

http://<device-name>.local:1980
# or use the device IP from your router
2

Open the firmware update page

http://<device-name>.local:1981/update

Log in with the web admin credentials.

3

Upload the matching firmware binary

# ESP32 boards
bin/esp32/firmware.bin

# ESP8266 / NodeMCU
bin/esp8266/firmware.bin

Wait about 30 seconds — the device reboots on the new firmware.

ℹ️
Only firmware.bin is needed here. Bootloader and partition files are only required for Section A (USB flash).
4

Install the web portal

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.

Troubleshooting
“Failed to connect” during USB flash

Hold the BOOT button while the script connects, release once it says Connecting…. Try another USB cable (some only charge) and close any serial monitor using the port.

Wrong board type flashed

Re-run Section A with the correct script — ESP32 and ESP8266 images are not interchangeable.

Can’t reach .local address

Use the device IP from your router, or reconnect to the Autosense AP and visit http://192.168.4.1:1980.

Page says “portal files are not installed”

The firmware was updated but the web portal wasn’t — do step 4 of Section B.

Portal looks old after an update

Reload the page (Ctrl+F5, or pull to refresh on a phone).

Settings lost after update

Settings are only erased by System → Factory reset (or /reset). A normal Section A or B update keeps them.

Passwords & Logins

These are the factory-default credentials shipped with the firmware. Use them during first-time setup and firmware management.

📶
WiFi Access Point
SSID Autosense
Password Autosense

Connect to this network on first boot to access the setup page at http://192.168.4.1:1980.

🔒
Web Admin
Username admin
Password autosenseadmin@

Required for firmware updates at :1981/update, portal files at :1981/upload (and the update_portal script), and Factory reset in the portal.

Supported Sensors & Plugins

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 —
ℹ️
On ESP32, analog sensors must use GPIO 32–39; the portal tells you if a pin can’t be used. plugins.json from 1.x is no longer needed — modules are switched on in the portal.
Looking for MQTT Topics & Telemetry Payloads?
Explore complete JSON payload schemas, composite data structures, and calibration commands for all plugins.
View MQTT Plugins & Payloads Map →

Request or Submit a Plugin

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.

💡

Request a New Sensor

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.

🛠️

Build & Submit Your Plugin

Get 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.

src/P900.cpp — a complete plugin
#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)

No HTML, EEPROM, MQTT or display code — AutoSense builds the portal form, dashboard card, OLED line and MQTT messages from describe().

Submit Plugin Request on GitHub

Opens GitHub Discussion #2 in the Autosense Community repository

What’s in the Zip

AutoSense_Flash_Kit_2.3.0.zip
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
Download Flash Kit v2.3.0

AutoSense_Flash_Kit_2.3.0.zip  ·  Release Notes