RPI-GPIO-IN not giving the expected output