I've designed this case for my Planters, so I could have a wireless device measuring soil moisture and control the small water pumps to water the plants automatically, specially on vacations.
The project takes 4 M3 screws and the holder is glued on the crossbar.
ESP32 will be a tight fit but it has space for Dupont connectors inside and has an opening for the USB port for power and another for the sensor and control wires.
The author marked this model as their own original creation.