A decoder for a two-wire irrigation system is disclosed, having the ability to be remotely updated with new firmware over the two-wire network, the ability to download irrigation commands that can be executed at a later time, the ability to adjust its data speed when data corruption is encountered, and the ability to sense the position of an attached solenoid plunger.