Gluing Liquid Level Sensor-XKC-Y25-T12V

Hi All,
could you please let me know the best glue for Liquid Level Sensor-XKC-Y25-T12V sensor?
Is it ok to use Glue Gun - I tried 3 sensors with Glue gun and 2 of 3 worked fine, but one had significant problem.
Please advise.
Thanks
Martin
could you please let me know the best glue for Liquid Level Sensor-XKC-Y25-T12V sensor?
Is it ok to use Glue Gun - I tried 3 sensors with Glue gun and 2 of 3 worked fine, but one had significant problem.
Please advise.
Thanks
Martin