My intention was to have an IR led and phototransistor to read a wheel's RPM.
Im guessing i need to use GPIO for this, however i have no idea on how to read the input (im using NodeMCU... its input, its interrupt? do i need to count interrupt in a loop for an specifc time?