From: acevest Date: Mon, 1 Dec 2014 14:07:17 +0000 (+0800) Subject: add human body induction X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=2caccd8bd2cad7a8c4d4c93db9be12f81aedd66f;p=acecode.git add human body induction --- diff --git a/arduino/Sensors/Sensors/Sensors.ino b/arduino/Sensors/Sensors/Sensors.ino index d2c5514..6ebcef7 100644 --- a/arduino/Sensors/Sensors/Sensors.ino +++ b/arduino/Sensors/Sensors/Sensors.ino @@ -13,6 +13,8 @@ void loop() { int tv = analogRead(1); // Temperature + int bd = analogRead(2); // Human Body + delay(100); float temperature; @@ -26,10 +28,15 @@ void loop() { Serial.print("Temperature Sensor Value: "); Serial.println(tv); + Serial.print("Body: "); + Serial.println(bd); + Serial.print(">"); Serial.print(lv); Serial.print(":"); Serial.print(temperature); + Serial.print(":"); + Serial.print(bd); Serial.println(" "); }