I learned this stuff by playing with the pneumatic elements Lego used to (still does?) make. There&#x27;s actually a lot of literature from this perspective, try searching for &quot;lego pneumatic logic&quot; and the like.