Self-powered Sensing for Chemical and Environmental Detection