To replace the battery in your Melnor water timer, locate the battery compartment on the device. Open the compartment and remove the old batteries, taking note of the correct orientation for the new ones. Replace the old batteries with fresh ones, ensuring the proper orientation. Replace the battery compartment cover and check if the timer is functioning correctly.