I would like to know, if a pin needs to be used as an input, is it necessary to use
digitalWrite (pin,HIGH).
Is it better to define the pin to be used as input as an integer type or using #define ??
The reason why I'm asking is, I need to send a message whenever, pin 9 become high (or low) , but the problem, I'm facing is that the message is sent as soon as the program is uploaded to the board.
Pls help!!!