Heating system based on heat recovery from sewage