This is a case for a Sonoff base module, a PIR sensor and a DHT temperature/humidity sensor. The lid is held in place by means of 3mm bolts. The holes in the lid will probably need to be opened up a bit to allow the bolts through. The DHT sensor is best placed away from the box as it can give high readings due to it sensing the temperature from the Sonoff module itself.
Sonoff is programmed with Tasmota firmware and controlled and monitored using Openhab2.