 {
     Serial.begin(SERIAL_BAUD);
     delay(DELAY);
+    
+    // initialize analog float switch object and pin
+    g_float_switch.set_name(FLOAT_SWTCH_NAME_PREFIX);
+    g_float_switch.set_pin(START_PIN_FLOAT_SWTCH);
     
     // initialize relay switch objects and pins
     for (unsigned int i = 0; i < NUM_RELAY_SWTCHS; i++)

#define NUM_H20_SNSRS     2
#define NUM_FEED_VALVES   1

#define RELAY_SWTCH_NAME_PREFIX   "RelaySwitch"
#define DHT22_SNSR_NAME_PREFIX    "DHT22Sensor"
#define DSB18B20_SNSR_NAME_PREFIX "DS18B20Sensor"

CRelay         g_relay_switches[NUM_RELAY_SWTCHS];
CDht22Sensor   g_dht22_sensors[NUM_DHT22_SNSRS];
CDs18b20Sensor g_ds18b20_sensor;  // these probes are all on 1 wire

#define DBG 1 // turn on to get detailed debug info
#if DBG == 0

#include <Arduino.h>
#include "cmd_protocol.h"
#include "base_device.h"
#include "analog_float_switch.h"
#include "relay_switch.h"
#include "dht22_sensor.h"
#include "ds18b20_sensor.h"

#define DELAY 500

#define START_PIN_FLOAT_SWTCH   0 // pin 0: analog float switch
#define START_PIN_RELAY_SWTCHS  2 // pin 2: main kill switch
                                  // pin 3: grow bed valve
                                  // pin 4: top left outlet
