Five Piston Compressed Air Engine

I figured you could put a magnet in the top of each piston and a reed switch at top of the cylinder and they would trigger valves that exhaust when not energized and give a shot of air when triggered.