i am working on a simple project for my college with arduino and android commmunication. All i want to achieve is a simple communication between arduino bluetooth module and android application. On my code i have put two if conditions and two Serial.println. For example if FIRE variable is HIGH then Serial.println("Fire is detected" , by the same token if FIRE variable is LOW then Serial.println("No worries"). How can i simultaneously print on the android application the same message ? Please if someone could guide me which commands i need to place in my code , i'd be thankful.
const int buzzerPin = 9; // BUZZER PIN MODULE
const int flamePin = 4; // FLAME SENSOR
int red_led = 12; // RED LED PIN 12
int green_led = 13; // GREEN LED PIN 13
int Flame = HIGH;
I have downloaded the Serial Bluetooth Terminal application from playstore https://play.google.com/store/apps/details?id=de.kai_morich.serial_bluetooth_terminal , do you think it's fine for my project ? Also can you explain me how to put those flags that you told me in the sketch ? Sorry for my amateur skills in programming but i am still learning.