There are at least 3 options that are just a Google search away from even the “UI user”:
- Daily Sensor integration
- Periodic Min/Max integration
- A single trigger-based template sensor that triggers on the state of the sensor in question as well as at midnight. With a couple attributes, this one will also let you store a timestamp and/or the previous day’s value.