NOVELTY - Automated composting system in combination with sanitary device for producing soil improvement providing compost, comprises at least one first buffer tank (5), a bioreactor (a ventilator, a stirring element (23), a pH controller, a process parameter controller, a growing medium-metering device (4)), a screw press (9), a screw-operated tubular reactor zone, a tube plate, a compressor, a ventilation system, a heat exchanger system (21), a pump, an anaerobic reactor zone, a tapering, a screw conveyor, and a storage container.    USE - The automated composting system in combination with a conventional and alternative sanitary device is useful for producing soil improvement and fertilization providing compost by Terra Preta principle.    ADVANTAGE - The automated composting system in combination with sanitary device is cost efficient and environmental friendly.    DETAILED DESCRIPTION - Automated composting system in combination with a conventional and alternative sanitary device for producing soil improvement and fertilization providing compost by Terra Preta principle, comprises at least one first buffer tank from conventional or alternative sanitation systems of residential houses, office-, commercial-, production- or industrial buildings or public devices with bio and organic production waste and wastewater, a bioreactor (a ventilator (26), a stirring element (23), a pH controller, a process parameter controller, a growing medium-metering device (4)), a screw press (9) or a different type of drainage system, a screw-operated tubular reactor zone, a tube plate, a compressor, a ventilation system, a heat exchanger system (21), a pump or a different type of conveying device, an anaerobic reactor zone, a tapering, a screw conveyor, and a storage container. The urine at separation toilets is collected through a separate pipeline in at least one second separate buffer tank and is provided with additives to support the hydrolysis of the urea and/or precipitation of phosphorus and ammonium. The buffer tanks depend on the function of the bioreactor. The additives for producing Terra Preta and for precipitation of major content, e.g. phosphorus and nitrogen compounds are metered in the first and second buffer tanks through a controlled metering device and the pH controller. The wastewater, which is blended with the additives, is drained upstream in the first buffer tank through the screw press or different type of drainage system and is led into the aerobic, upwardly opened screw-operated tubular reactor zone. The aerobic part of the tubular reactor is either ventilated through inlets in the tube plate with the compressor or actively by the ventilation system. The dissipated heat is recovered and used via the heat exchanger system in the same or counter-current method. The material present in the fermentation is recycled with the pump or the different type of conveying device through a line in the first buffer tank, and the inoculation is carried out with the microorganisms derived from the fermentation process. The aerobic fermented material is compressed at the transition from the aerobic reactor zone to anaerobic reactor zone on the tapering and is released from air pockets. The material is humidified with water, nutrient solution, which is required for the process, and the nitrogen-rich urine in the aerobic- and the anaerobic reactor through the inlets, and is provided with nutrients. The anaerobically fermented material is introduced into at least one storage container through the screw conveyor, and are stored or further fermented until the anaerobically fermented material are collected in the absence of air or air entry.    DESCRIPTION OF DRAWING(S) - The figure shows a schematic representation of the automated composting system in combination with sanitary device.    Growing medium-metering device (4)    Screw press (9)    Heat exchanger system (21)    Stirring element (23)    Ventilator (26)