Added RPM sensor code