int state;
void setup() {
Serial.begin(9600); // im not sure for this
}
void loop() {
if(Serial.available() > 0){
state = Serial.read();
Serial.println(state);
}
}
can i use this program
i connected gnd-gnd, 5v-5v, tx-tx and i puted 5k resistor from gnd andrx on module and 2k resistor from rx on module to rx on arduino
my board works on 3.3 logic level