this project is consist of 2 devices, the first one is wearable mkr1000 with battery and temperature and humidity sensor, the mkr1000 send temperature and humidity to Artik cloud. now doctor can observe patient's fever and sweating of patient. now if temperature go too high or low. Artik will send email to doctor. and send action to second device! second device is a mkr1000 that control cooler with relay!
open arduino ide go to sketch>>include library>>manage libraries..
and now search and install MQTTClient.h , ArduinoJson.h WiFi101.h , dht.h
go to https://developer.artik.cloud/dashboard/devicetypes and click on +new device type.
now go to https://artik.cloud/my/devices
go to https://developer.artik.cloud/dashboard/devicetypes again and create new device.
now go back to https://artik.cloud/my/devices
The wearable device is the simple part! you just connect your DHT module to mkr1000 and power it with battery or power bank. connect the +&- of DHT to 5V & GND and connect out pin to the A0 of mkr1000.
Open the cooler controller code and replace wifi name and password, device id and device token. upload it to mkr1000.
I use a voltage protector to connect relay to cooler because it is more safe!
relay work's with 5V, but mkr1000's digital write is 3.3V. so we need logic level converter
AT first we connect 5V to HV and GND to GND. then we connect 6 pin of mkr1000 to LV(becuse we have digital write, high to 6 pin and it's voltage is 3.3 like our signal voltage),now we send signals through one of logic level converter's channels.
RGB led show's the status. green means that cooler is on and red means off!
now every thing is OK! you can sit and enjoy your fever while Artik ic controling your body temperature.