The present invention is to provide a device for generating electricity by using pressure inside a muffler of an engine. The device includes atleast one piezoelectric crystal arranged in front of at least one exhaust tube of a muffler. The pressure inside the muffler, vibrates the atleast one piezoelectric crystal thereby generating electricity.