ACU>RITE Temp Sensor # 606TX

Here Is 1 Of My Sketch's : 8)

/*

  • Read Pulse in MicroSeconds
  • Using Digital Pin # 47
  • Pin # 47 High When NOT Reciving Data
  • Pin # 47 Goes Low When Reciving Data
    */

int Pin = 47; // Reciver is connected to pin # 47
unsigned long Duration;
int Count = 0;
int EndCount = 0;
int PulseLow[500];
int PulseHigh[500];
int a;

void setup() {
pinMode(Pin, INPUT); // Set the switch pin as input

Serial.begin(9600); // Set up serial communication at 9600bps
Serial.println("Reading Pin(47) MicroSeconds:");
Serial.println("Count High Low");
}

void loop() {

do {
Duration = pulseIn(Pin, HIGH); // Wait For Data
} while (Duration < 1);

PulseHigh[Count] = Duration;

do {
Duration = pulseIn(Pin, LOW);
PulseLow[Count] = Duration;

Duration = pulseIn(Pin, HIGH); // Reciving Data, Short & Long Pulse's
PulseHigh[Count] = Duration;
Count++;
} while (Duration > 10);

EndCount = Count;
Count = 0;

for(Count; Count < EndCount; Count=Count+1) { // Print Out Data To Serial Terminal
Serial.print(Count);
Serial.print(" ");
Serial.print(PulseHigh[Count]);
Serial.print(" ");
Serial.println(PulseLow[Count]);
}

do { // Loop Forerver
a = 0;
} while (a = 1);

}


And The Data Dump... In Microseconds...

Reading Pin(47) MicroSeconds:
Count High Low
0 529 481
1 533 2047
2 529 4145
3 519 4174
4 523 2055
5 514 2057
6 514 4155
7 520 4183
8 520 2060
9 515 4159
10 514 4161
11 523 2061
12 515 2057
13 516 4159
14 518 4182
15 520 2059
16 510 2062
17 518 4159
18 519 4190
19 514 2061
20 514 4151
21 523 4157
22 522 2060
23 514 2060
24 523 4155
25 520 4182
26 514 2056
27 515 2061
28 519 4159
29 515 4183
30 514 2060
31 522 4157
32 523 4153
33 518 2061
34 523 2056
35 524 4156
36 516 4182
37 514 2052
38 518 2061
39 512 4160
40 516 4178
41 520 2061
42 520 4156
43 520 4155
44 516 2060
45 526 2057
46 518 4155
47 514 4181
48 520 2060
49 511 2059
50 514 4157
51 522 4186
52 522 2060
53 514 4157
54 518 4155
55 526 2057
56 518 2056
57 516 4155
58 522 4181
59 520 2060
60 514 2060
61 519 4160
62 520 4186
63 516 2059
64 516 4149
65 523 4156
66 523 2059
67 518 2057
68 524 4156
69 522 4182
70 514 2060
71 520 2061
72 516 4159
73 514 4183
74 515 2060
75 522 4157
76 524 4156
77 518 2060
78 520 2057
79 522 4155
80 518 4181
81 515 2056
82 519 2060
83 514 4159
84 514 4176
85 520 2060
86 522 4156
87 516 4157
88 13418 2060
89 7230 39
90 0 0