If you can power it from a cord then that opens up a lot of options.
If you can solar charge a battery in place that would be great too.
With the two above options you could use an ESP which opens up a lot.
You probably can’t use esp deep sleep for the project.
You can look at ESPlanty for solar battery ideas (including a waterproof enclosure).