int valuea;
int valued;
//String row; // not required
void loop() {
if (1==1) {
if (bt.available()) {
Serial.write(bt.read());
}
if (Serial.available()) {
bt.write(Serial.read());
}
}
// put your main code here, to run repeatedly:
valuea = analogRead(readPinA);
valued=digitalRead(readPinD);
if (abs(512-valuea)>10) {
alarmflag=true;
alarmtime=millis();
}
if (millis() - alarmtime >3000) {alarmflag=false;}
Alarm(alarmflag);
bt.print("\t");
bt.println(String(valuea));
//delay(20); //irgendwie stört das die Serielle (Software) Übertragung ...
}