Painting over the depth transducer should be fine.
If you have a paddle wheel speed sensor, withdraw it and insert the blank and paint over that.
There is a special anti foul product for paddle wheels that you should be able to buy at WWs.
This one:-
www.whitworths.com.au/transducer-paint-92ml