Trying to control air solenoid valve

Your diagram shows the solenoid power supply connected to "Vin".

For this sort of project, nothing should be connected to "Vin" or the "barrel jack".