For temp I'm using a Fibaro FGK-101 door/window sensor. It has external inputs that accept a DS18B20 temperature probe. I stuffed all of this into a waterproof project box from Amazon (with a hole drilled and sealed for the temp probe to stick out) and just let it float inside the skimmer.
It's been in there for a year and a half and still going strong.