 		while (radio.available()) {                          // While there is data ready
 			radio.read( &myData, sizeof(myData) );             // Get the payload
 		}
-			fadePWM = 255;  // start fading on the start of each beat.
-			analogWrite(PIN_FADE, fadePWM);
+			Serial.println(myData.Pulse);
+			// Blink the non-fading LED when the start of a pulse is detected.
+			if (myData.Pulse){ //revise, state might be repeating 1111,00,111,0
+				fadePWM = 255;  // start fading on the start of each beat.
+				analogWrite(PIN_FADE, fadePWM);
+				digitalWrite(PIN_BLINK, LOW);
+			} 
+			else {
+				digitalWrite(PIN_BLINK, HIGH);
+			}
 			
+			/*
 			Serial.print('B');
 			Serial.println(myData.BPM);
 			Serial.print('Q');
 			Serial.println(myData.IBI);
 			if (myData.BPM>80)
-			HIGHbpm();
+				HIGHbpm();
 			if (myData.BPM<78)
-			LOWbpm();
+				LOWbpm();
+			*/
 		}
 	
 		// Coincidentally, fade the LED a bit.

		}
		analogWrite(PIN_FADE, fadePWM);
		
		// Blink the non-fading LED when the start of a pulse is detected.
		if (pulseDetector.isPulse()) {
			digitalWrite(PIN_BLINK, HIGH);
		} else {
			digitalWrite(PIN_BLINK, LOW);
		}
	}

}


struct dataStruct{
  unsigned long _micros;
  bool Pulse;
  int BPM;
  int IBI;
}myData;
