Thank you all for your responses and suggestions!!! I will replace the reed switch with a new one and check.