How does the solenoid valve work?