mic plugin: Code for power readings.