added class factory to sensors library