Added GPIO read code