Pool Temperature Switch

Hello,

I'm attempting to install a remote pool temp sensor embedded in the PVC piping out to my pool.

Any advice how to connect this specific sensor into a water flow switch housing? How do I prevent the temp sensor from pushing out? Is there a special adapter for this? I planned on buying the following items.

https://www.amazon.com/gp/product/B01N7ZIEWL/ref=ox_sc_saved_title_2?smid=A1XO9WGZO0A93O&psc=1

https://www.amazon.com/gp/product/B00R6FH410/ref=ox_sc_saved_title_1?smid=A1XO9WGZO0A93O&psc=1

Flow-Switch-2600-2419_01

A pool or pond forum might be better to check with but... There are simpler methods to house the sensor unless you are trying to monitor temp in a pipe with water flow. If you just want the pool temp you can completely embed the sensor end in a small pvc pipe with cap. Fill it with caulk or hot glue. The bigger problem will be the power plug going to the Fibaro. For that you probably want a case with sealing plug ports, or again just bury any connections in caulk or hot glue.