A piezoelectric ceramic vibrator is mounted inside a metal case including a portion adapted for fastening the case to an engine, and the vibrator is adapted to resonate in response to a vibration frequency produced upon knocking of the engine. The output of the vibrator is taken out as a knock output.