An anti-knock sensor ensures safe engine operation even while using lower octane fuel or in situations potentially detrimental to combustion efficiency, e.g. at high altitude.
Aviation gasoline, often referred to as avgas, is a highly refined form of gasoline for aircraft, with an emphasis on purity, anti-knock characteristics and minimization of spark plug fouling.