A pressure control device for a milking machine includes a housing, a vacuum inlet, and two control circuits. Each circuit includes a main vacuum passage extending through the housing from the vacuum inlet to an outlet, and a main valve configured to take one of an open position and a closed position. A pilot passage extends from the main vacuum passage and includes a pilot valve body configured to take one of an open pilot position and a closed pilot position. The pilot passage acts in the open pilot position on the main valve to move to the open position, and permits in the closed pilot position the main valve to move to the closed position. A solenoid controls the pilot valve body. A holding member receives the solenoid and is attached to the housing through a first bayonet coupling.