An automatically-moving gardening device comprises a housing, a moving module, a task execution module, and a control module. The moving module and the task execution module are mounted on the housing. The control module is electrically connected to the moving module and the task execution module. The control module drives the gardening device to move, and controls the task execution module to execute a working task. The gardening device also comprises a cliff recognition module. The cliff recognition module is mounted on the housing, is electrically connected to the control module, recognizes whether a cliff is located in the front of the movement direction of the gardening device, and outputs a first recognition signal when it is recognized that the cliff is located in the front of the movement direction of the gardening device. The gardening device also comprises a grassland recognition device. The grassland recognition device is mounted on the housing, is electrically connected to the control module, recognizes whether a non-grassland is located below the gardening device or in the front of the movement direction of the gardening device, and outputs a second recognition signal when it is recognized that the non-grassland is located below the gardening device or in the front of the movement direction of the gardening device. The control module responds to the first recognition signal or the second recognition signal, and controls the gardening device to execute an emergency response action.La présente invention concerne un dispositif de jardinage à déplacement automatique qui comprend un boîtier, un module de déplacement, un module dexécution de tâche et un module de commande. Le module de déplacement et le module dexécution de tâche sont montés sur le boîtier. Le module de commande est raccordé électriquement au module de déplacement et au module dexécution de tâche. Le module de commande amène le dispositif de jardinage à se déplacer, et commande le module dexé