#ifndef HCSR04_h //Prevents repeat header compilation #define HCSR04_h #include "Arduino.h" //including standard Arduino library that is accessible by default in library files class HCSR04ProxSensor //name of class that will be referenced in main code { public: HCSR04ProxSensor(int echoPin, int triggerPin); //Setting up public class members to make the compiler aware of them and their data types float readSensor(); float getLastValue(); private: int _echoPin;//Setting up private internal class variables that can be set on setup and referenced when data needs to be pulled int _triggerPin; float _distance; float _LastValue; }; #endif