Code for my battery-powered, wireless sensor to track the salt levels of my water softener. Requires a MySensors Gateway to receive the data.
Key components include:
- Microcontroller: ATMEGA328P (clocked at 8Mhz)
- Radio: NRF24L01+
- Ultrasonic Sensor: HC-SR04
- Batteries: 2 AA
Estimated battery life: ~2 years.