Calling a function

I've never used functions before, and have tried to work through this example, but I'm not getting anything whatsoever printed in the monitor.
I have a humidity sensor attached to pin A0 (analogue pin).

Is there something obvious missing/wrong?

const int analogPin = A0;

void setup() {
  // put your setup code here, to run once:
}

int ReadSens_and_Condition(){
  int i;
  int sval = 0;
  for (i = 0; i < 5; i++){
    sval = sval + analogRead(analogPin);
  }
  sval = sval / 5;    // average
  return sval;
}

void loop() {
 int sens;
 sens = ReadSens_and_Condition();
  Serial.print("Average = ");
  Serial.println(sens);
  Serial.println ();
  delay (10000);
}

I've never used functions before

Yes you have, setup and loop are normal functions.

The problem is that you didn't call Serial.begin(baud) in your setup function.

Doh! I feel really stupid now, having spent almost an hour swopping and changing things...

Thanks

On the plus side, your function looks fine, and even relatively well designed (especially for a first attempt.)