A rodent trap comprising: a cage having an entrance configured to allow a rodent to enter the cage; a control circuit board; discharge plates on an inner surface of the cage and spaced apart from each other, wherein the control circuit board is configured to establish a voltage between the discharge plates; a first infrared sensor comprising a first infrared emitter and a first infrared receiver, wherein the rodent prevents an infrared light beam emitted by the first infrared emitter from reaching the first infrared receiver when the rodent steps on adjacent pair of the discharge plates; and a second infrared sensor comprising a second infrared emitter and a second infrared receiver placed apart from the first infrared sensor. The invention also relates a method of using a rodent trap having a first discharge plate and a second discharge plate.