USING WATER AS A TILT SWITCH

Thanks for your response but I can not understand the method by which you calculate the value of resistor required.Can you please elaborate a bit.