A method and arrangement is provided for controlling the operation of a manure scraper based on information obtained from one or more cameras mounted such as to capture images of the area of operation of the scraper.The solution enables a more efficient use of a widely spread technology for manure handling.