We have seen how to connect nodemcu and arduino in this post. In that post I just mentioned that we should use a level shifter when connecting two