Water and electronics isn’t a good combination. So I have no idea if this will be working. Putting the sensor in water will maybe result in a short cut and isolating it against the water maybe would not give you a correct result.
For measuring air temparature I would recommend the DS18B20.
I was going to enclose the I was going to enclose the circuitry in a waterproof container and only expose the tip of the sensor to the water. Any wires that wern’t in the enclosure, I was going to waterproof silicon?