<commit_before>WT450 Sender Library for Arduino
================================

This small library allows an Arduino to emulate the WT450 temperature and humidity sender. This is the same model as the standard Ninja Blocks temperature and humidity sensor.

By default the transmitter data pin should be connected to the Arduino digital pin 9.

Use the sendWT450Packet to send a custom packet specifying:

- House Code (1 to 15)
- Channel (1 to 4)
- Humidity (0 to 127)
- Temperature (floating point 0 to 205)


WT450 Emulator

Send WT450 protocol packets through an RF transmitter.

Thanks to <NAME> and colleagues for sharing
the protocol information and packet content for the WT450.

The following information is an abbreviated version of material from
http://ala-paavola.fi/jaakko/doku.php?id=wt450h

+---+   +---+   +-------+       +  high
|   |   |   |   |       |       |
|   |   |   |   |       |       |
+   +---+   +---+       +-------+  low

^       ^       ^       ^       ^  clock cycle
|   1   |   1   |   0   |   0   |  translates as

Each transmission is 36 bits long (i.e. 72 ms)

Example transmission (House 1, Channel 1, RH 59 %, Temperature 23.5 °C)
110000010011001110110100100110011000

b00 - b03  (4 bits): Constant, 1100, probably preamble
b04 - b07  (4 bits): House code (here: 0001 = HC 1)
b08 - b09  (2 bits): Channel code - 1 (here 00 = CC 1)
b10 - b12  (3 bits): Constant, 110
b13 - b19  (7 bits): Relative humidity (here 0111011 = 59 %)
b20 - b34 (15 bits): Temperature (see below)<commit_msg>Edited readme<commit_after>WT450 Sender Library for Arduino
================================

This small library allows an Arduino to emulate the WT450 temperature and humidity sender. This is the same model as the standard Ninja Blocks temperature and humidity sensor.

By default the transmitter data pin should be connected to the Arduino digital pin 9.

Use the sendWT450Packet to send a custom packet specifying:

- House Code (1 to 15)
- Channel (1 to 4)
- Humidity (0 to 127)
- Temperature (floating point 0 to 205)


WT450 Emulator

Send WT450 protocol packets through an RF transmitter.

Thanks to <NAME> and colleagues for sharing
the protocol information and packet content for the WT450.

The following information is an abbreviated version of material from
http://ala-paavola.fi/jaakko/doku.php?id=wt450h
```
+---+   +---+   +-------+       +  high
|   |   |   |   |       |       |
|   |   |   |   |       |       |
+   +---+   +---+       +-------+  low

^       ^       ^       ^       ^  clock cycle
|   1   |   1   |   0   |   0   |  translates as

Each transmission is 36 bits long (i.e. 72 ms)
```
Example transmission (House 1, Channel 1, RH 59 %, Temperature 23.5 °C)
110000010011001110110100100110011000

b00 - b03  (4 bits): Constant, 1100, probably preamble
b04 - b07  (4 bits): House code (here: 0001 = HC 1)
b08 - b09  (2 bits): Channel code - 1 (here 00 = CC 1)
b10 - b12  (3 bits): Constant, 110
b13 - b19  (7 bits): Relative humidity (here 0111011 = 59 %)
b20 - b34 (15 bits): Temperature (see below)
{'fraction_non_alphanumeric': 0.12115258677144729, 'fraction_numerical': 0.09299279633267846, 'mean_word_length': 2.6455847255369926, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5763399', 'n_tokens_mistral': 1186, 'n_tokens_neox': 936, 'n_words': 390}