While I did something similar years ago, your DIY makes me nervous. It looks like masking tape in the first image. With electricity, always use electrical tape.
Also, the part I spliced together was then inserted into a ziplock bag to act like a waterproof cape, ziptied shut to keep moisture out. That area was then oriented in a way that kept it dry, but if water were to splash against it somehow, water would run down the ziplock bag, rather than find a way in.
Using a relay is wiser. You have less voltage going into that float switch. Instead of 110v, it would be 12v. Here's a page with details and links:
http://www.aquahub.com/store/diygaquarium.html
Can you explain what is going on with the white plug in the first picture, that has a black tube sticking out of it?
Finally, remember the rule that all electrical needs drip loops. The piece hanging down from the float switch should be elevated so water can't follow the cord to the connection we currently see.