Suitability of liquid plastic resin for plumbing application Which synthetic resins are suitable for fabrication of plumbing components e.g pipe sections?

I'm trying to find an easy way to mold/house/encase a custom designed data logger.
The water temperature ranges between 10 to 50 degrees C.

EDIT: I'm planning this for both indoor &amp; out door use. Under direct sunlight.
Epoxy should work OK and you have different options that are easy to get.