Sparkfun Weather Meter Kit

What example? I do not see any example

You linked only the library - WeatherMeters - Weather Meters (Sparkfun) http://mbed.org/users/… | Mbed
So you need to import it to your project again and then use it in your main.cpp with your own usage.

According to - Wetterstation - Dieses Programm verarbeitet die einzelnen Messwer… | Mbed you probably need something like this.

#include "mbed.h"
#include "WeatherMeters.h"

WeatherMeters station(A0, A1, A2, Weather_auto); // change to your pins

int main() {
    printf("Mbed WeatherMeters example\r\n");
    // do something before loop
    while(1){
        printf("Windspeed: %3.2f\r\n",station.get_windspeed());
        printf("Windvane: %3.2f °\r\n",station.get_windvane());
        printf("Raingaug %3.2f\r\n",station.get_raingauge());
        thread_sleep_for(1000);
    }
}

Sorry, but it seems like you not understand basics.

BR, Jan