I am looking to find a standardized way to measure the movement of a hydraulic cylinder. Unfortunately the cylinders that we are using do not have a magnet, so it isn't possible to use a positioning sensor (as far as I know). The sensors that we will be putting into place need to be easily attached and removed, so they cannot be integrated into the actual structure of the cylinder. My thought was to use an accelerometer to measure the frequencies of the cylinder. I am thinking that when the cylinder has reached the end of its stroke, it will read a unique frequency (at least I hope). The end result from getting these readings, will then allow us to measure the cycles of the hyd cylinders. Has anyone ever dealt with a problem like this, or have any different sensors in mind that I could possibly use?