Pomelo peel was used to create devices that can convert mechanical energy into electricity and serve as self-powered motion sensors.