Xiaomi Temperature and Humidity Sensor Holder by RSCtech
You can use screw or glue to fix it.
It keeps the sensor stable thanks to its design, even upside down. It can be easily removed when replacing the sensor battery.
The author hasn't provided the model origin yet.