ESP32 Watchdog Setup?

I have an ESP32 monitoring my sump pumps and water sensors using ESPHome and Home Assistant.

How can I setup a variable in the ESP32 that is sent via MQTT and changes every 5 minutes. My goal is to monitor this value and verify it changes at least every 10 minutes so I know the ESP32 is online and working.

Thank you in advance.

You mean like the uptime sensor? Or the status sensor?

Uptime is a good oneā€¦

# Sensors with general information.
sensor:
  # Uptime sensor.
  - platform: uptime
    name:  Uptime

Thank you!

Perfect example of my trying to over engineer something. Thank You!