Camera

You can get very cheap miniature industrial cameras that can be hooked up to an ESP32 or Raspberry Pi. These setups make for inexpensive but powerful sensors to control and monitor equipment, such as my solar battery, air conditioner, and pool pump.

Example Product:
Industrial Mini Camera on Amazon