NodeMCU has on analog channel which is configured to read the System voltage, we can configure it to sample the external pin. The ADC seems a bit jumping