I have designed this simple case for my capacitive soil moisture sensor, I made the space for connectors and the two parts of the case are put together with glue.