// Howdy 👋.
//
// This is where you can create powerful part automations like resistors that tell you when too much current is flowing through them
// You can also create your own flexible parts, like generics (https://docs.flux.ai/Introduction/generic-parts)
//
// If you are new to writing code in Flux make sure to check out our get started docs: https://docs.flux.ai/reference/introduction
//
// We also have a Flux Slack Community in case you need help: https://join.slack.com/t/fluxcommunity/shared_invite/zt-p48n941f-wzQ06kGmuFJ2HXnGYT1JkA
//
// To infinity and beyond 🚀
// Include the SPI library
#include < SPI.h >
// Assign pin numbers
const int chipSelectPin = 10; // CS pin for the ADC
const int analogChannel = 0; // Channel on the ADC where your sensor is connected
const int digitalStatusPin = 2; // Pin connected to digital status signal of a circuit
void setup() {
// Set up Serial communication for debugging
Serial.begin(9600);