    * Check for a rising edge on the sensor.
    */
   boolean sensorRising = false;
-  int sensorNow = digitalRead(SENSOR_PIN);
+  int sensorNow = digitalRead(SENSOR_1_PIN);
   if (sensorNow != sensorThen && sensorNow)
   {
     //Sensor rising edge!

{

  pinMode(BLENDER_PIN, OUTPUT);
  pinMode(SENSOR_PIN, INPUT);  
  pinMode(BUTTON_PIN, INPUT);
  pinMode(GREEN_LED_PIN, OUTPUT);
  pinMode(RED_LED_PIN, OUTPUT);

  digitalWrite(BLENDER_PIN, LOW);
  digitalWrite(GREEN_LED_PIN, LOW);

/////////////////////////////////////////////


#define SENSOR_1_PIN   13
#define SENSOR_2_PIN   7
#define BLENDER_PIN    12
#define GREEN_LED_PIN  5
#define RED_LED_PIN    4
#define BUTTON_PIN     2

//The DIP switches!
#define SWITCH_1_PIN  11
#define SWITCH_2_PIN  10
#define SWITCH_3_PIN  9
#define SWITCH_4_PIN  8


//Note that the PIR sensor needs at least 40 seconds to start up. 
#define WARM_UP_TIME_MS ((unsigned long) 41000)
