remove duplicate code: function readAdc was used in multiple files, outsourced this to gpio component