digitalwrite' was not declared in this scope

Get this Error when trying to uplad the sketch?

sketch_feb21a.cpp: In function 'void loop()':
sketch_feb21a:18: error: 'digitalwrite' was not declared in this scope
sketch_feb21a:22: error: 'digitalwrite' was not declared in this scope
int sensorPin = 0;    			// select the input pin for the photocell
int sensorValue = 0;  			// variable to store the value coming from the photocell
int LEDpin = 8;					//LED Pin is on the Digital i/o pin number 8

void setup() {
  Serial.begin(9600);      //Set baud rate to 9600 on the Arduino
  pinMode(LEDpin, OUTPUT); //set the LED pin as an output on digital i/o pin 8

void loop() {

  sensorValue = analogRead(sensorPin);  //get the value from input pin
  Serial.println(sensorValue);  //print the value to Serial monitor

      if (sensorValue < 300) //if there is darkness then turn led on

       digitalwrite(LEDpin, LOW);  //else, keep the led off


Check the spelling.

W should be of capital letter


OK, where is the faceplam emoticon!? :blush:

Thanks guys!

yes this is digitalWrite(pin number,HIGH/LOW)

That'll give a divide-by-zero. ]:D