Help with IoT water flow monitoring schematic

The sensor may work at 3.3V, regardless. At 5V, you still have the problem of level conversion. so save yourself trouble by buying a flow switch that IS specified to work at 3.3V. Some flow sensors have a reed switch that will work at any voltage.

If you don't know what capacitors do, then it is way too early to be "designing" circuits.