Compact hydraulic cylinders have a low profile and a metric design that allows these cylinders to be installed where space is limited. They have a corrosion-resistant aluminum body with grooves on three sides to allow sensors to be mounted. A magnetic piston allows a position-indicating switch to be installed that verifies the position of the cylinder at the end of the stroke. Compact hydraulic cylinders are often used in production applications and factory automation for tasks such as clamping, pushing, lifting, and workpiece support.