Cylindersensor