I want to virtually simulate a flow sensor with a second Arduino that is getting controls from a PC through Serial COM port. The flow sensor is a hall effect sensor so it either transmits LOW or HIGH level.
Is it safe to directly connect a digital output pin from #1 Arduino to digital input pin in #2 Arduino? Should a resistor or a diode put between the two pins?