user73081: How to power esp32 board this one with soil humidity sensor that sends data to server via wifi every 30 minutes for something around a year on battery? What battery type and capacity should I use for that? Or is there any better board you would recommend for this pourpouse? The setup will be indoors.

user14490: Okay, let's do some calculations.
Assume that device sends data for 5 seconds (turn on, connect to the Wi-Fi, and so on) and drains (according to the docs) about 0.2A.
So, it works for 5 (secs) * 48 (turn-on's) / 60 minutes per day for 365 days.
So, it works for 5 * 48 / 3600 hours per day for 365 days.
So, it works about 24 hours per year.
0.2A for 24 hours is 4.8A for 1 hour.
Assume that efficiency of the power regulator is 80%
4.8  - 80 %
X    - 100%
X = 6 A*h
So, take three (to compensate self discharge and have some headroom) standard Li-Ion cells, or mid-size (about 8000 mAh) power bank, and you well be fine.
But you shall add some external clock (powered by own CR2032 cell), that will be turn power regulator and esp-device ON every 30 minutes.

73081: <p>How to power esp32 board <a href="https://www.laskarduino.cz/lolin-32-esp-32s-2-4ghz-dual-mode-wifi-bluetooth--cp2102--nabijeni-baterie/" rel="nofollow noreferrer">this one</a> with soil humidity sensor that sends data to server via wifi every 30 minutes for something around a year on battery? What battery type and capacity should I use for that? Or is there any better board you would recommend for this pourpouse? The setup will be indoors.</p>
 14490: <p>Okay, let's do some calculations.</p>
<p>Assume that device sends data for 5 seconds (turn on, connect to the Wi-Fi, and so on) and drains (according to the docs) about 0.2A.</p>
<p>So, it works for 5 (secs) * 48 (turn-on's) / 60 minutes per day for 365 days.</p>
<p>So, it works for 5 * 48 / 3600 hours per day for 365 days.</p>
<p>So, it works about 24 hours per year.</p>
<p>0.2A for 24 hours is 4.8A for 1 hour.</p>
<p>Assume that efficiency of the power regulator is 80%</p>
<p>4.8  - 80 %
X    - 100%</p>
<p>X = 6 A*h</p>
<p>So, take three (to compensate self discharge and have some headroom) standard Li-Ion cells, or mid-size (about 8000 mAh) power bank, and you well be fine.</p>
<p>But you shall add some external clock (powered by own CR2032 cell), that will be turn power regulator and esp-device ON every 30 minutes.</p>
