Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am nkgilley on github.
  • I am nkgilley (https://keybase.io/nkgilley) on keybase.
  • I have a public key ASB0dS3lQjnecSosClih66OOK746Mhc9nxF_ZhNR5I3YFAo

To claim this, I am signing this object:

@nkgilley
nkgilley / custom_dfrobot_ph_sensor.h
Last active April 12, 2023 20:57
Custom sensor component for DFRobot Ph sensor
#include "esphome.h"
#include "DFRobot_ESP_PH.h"
// DALLAS
// Include the libraries we need
#include <OneWire.h>
#include <DallasTemperature.h>
// Data wire is plugged into port 2 on the Arduino
#define ONE_WIRE_BUS 2
@nkgilley
nkgilley / custom_dfrobot_ph_sensor_adc.h
Created July 26, 2022 01:23
Custom dfrobot ph sensor with ads1115 for esphome
#include "esphome.h"
#include "DFRobot_ESP_PH_WITH_ADC.h"
#include "EEPROM.h"
// ADS 1115
#include "Adafruit_ADS1X15.h"
// DALLAS temperature sensor
#include <OneWire.h>
#include <DallasTemperature.h>