Tested and working code for pneumatics rig