Skip to content

Instantly share code, notes, and snippets.

View makersenses's full-sized avatar

makersenses makersenses

View GitHub Profile
#include "Adafruit_SHTC3.h"
Adafruit_SHTC3 shtc3 = Adafruit_SHTC3();
void setup() {
Serial.begin(115200);
Serial.println("SHTC3 test");
if (! shtc3.begin()) {
Serial.println("Couldn't find SHTC3");
@makersenses
makersenses / wifi_esp32_conditional_auto_manual.ino
Created July 18, 2020 08:30
wifi_esp32_conditional_auto_manual
#include "Senses_wifi_esp32.h"
#include "DHT.h"
#define PUMP_PIN 13
#define DHTPIN 32
#define DHTTYPE DHT22
int control_port = 1;
DHT dht(DHTPIN, DHTTYPE);
const char *ssid = "xxxx";
@makersenses
makersenses / wifi_esp32_conditional_relay.ino
Created July 15, 2020 16:34
wifi_esp32_conditional_relay
#include "Senses_wifi_esp32.h"
#define pump_pin 13
const char *ssid = "your-wifi-network-name";
const char *passw = "your-wifi-password";
const char *userid = "your-senses-user-id"; /* You can get it at https://www.sensesiot.com/accountinfo */
const char *key = "your-device-key"; /* You can get it at https://www.sensesiot.com/myiotgarage */
String response;
int control_pump = 1;
@makersenses
makersenses / wifi_esp32_conditional_DHT22
Created July 15, 2020 16:33
wifi_esp32_conditional_DHT22.ino
#include "Senses_wifi_esp32.h"
#include "DHT.h"
#define DHTPIN 32
#define DHTTYPE DHT22
DHT dht(DHTPIN, DHTTYPE);
const char *ssid = "your-wifi-network-name";
const char *passw = "your-wifi-password";
const char *userid = "your-senses-user-id"; /* You can get it at https://www.sensesiot.com/accountinfo */
@makersenses
makersenses / wifi_esp32_conditional.ino
Last active July 12, 2020 20:56
wifi_esp32_conditional
#include "Senses_wifi_esp32.h"
#include "DHT.h"
#define PUMP_PIN 13
#define DHTPIN 32
#define DHTTYPE DHT22
int control_port = 1;
DHT dht(DHTPIN, DHTTYPE);
const char *ssid = "";
@makersenses
makersenses / Senses_weizen_rain.ino
Created June 11, 2020 15:08
Senses_weizen_rain
#include "Senses_wifi_esp32.h"
const char *ssid = "";
const char *passw = "";
const char *userid = "";
const char *key = "";
Senses_wifi_esp32 myiot;
String response;
@makersenses
makersenses / senses_nano_hc12_receive.ino
Created April 23, 2020 20:46
senses_nano_hc12_receive
#include <SoftwareSerial.h>
#define pump 2 // Arduino Nano 2 <-----> IN Relay
#define txPin 3 // Arduino Nano 3 <-----> Rx HC12
#define rxPin 4 // Arduino Nano 4 <-----> Tx HC12
SoftwareSerial HC12(rxPin, txPin);
long baud = 9600;
void setup() {
@makersenses
makersenses / wifi_esp32_hc12_send.ino
Last active April 23, 2020 20:43
wifi_esp32_hc12_send
#include "Senses_wifi_esp32.h"
#include <SoftwareSerial.h>
const char *ssid = "BOOM_WiFi";
const char *passw = "076434654";
const char *userid = "...";
const char *key = ".....";
String response;
bool current_state = false;
@makersenses
makersenses / wifi_esp32_downlink_control.ino
Last active April 23, 2020 20:43
wifi_esp32_downlink_control
@makersenses
makersenses / wifi_esp32_downlink_control.ino
Created April 23, 2020 20:11
wifi_esp32_downlink_control