Lamppost light sensor holder

I needed to install a new light sensor on my front lawn lamppost, but the one I bought didn't fit in the old one's mount. Hence this thing. I used some J-B Weld to make a watertight seal between the sensor and the holder after installing it.