Coffee machine comprising a main body comprising: - a circuit for dispensing coffee having an inlet for that can be hydraulically connected to a water supply line and comprising: - a pump suitable to put under pressure water arriving from the supply line; - a first boiler directly or indirectly hydraulically associated to said pump and comprising at least a first electric heating element; - at least one dispensing group (107, 108) hydraulically associated to said first boiler, controlled by a respective first solenoid valve; - a power switch device configured to permit or to prevent the passage of electric power toward said first electric heating element; - a central processing and control unit configured to control at least said circuit for dispensing coffee; - a communication interface connected to said central processing and control unit and configured to connect with a telecommunications network; - a sensor system for the detection of parameters related to possible operation anomalies or failures of said coffee machine provided inside said main body, said sensor system comprising one or more omnidirectional microphones arranged inside the main body; - a peripheral processing unit at least connected to the sensor system and configured to carry out a first local processing of the data detected by the sensors (12, 13) and to send the locally processed data to one or more remote server by the communication interface characterized in that at least one of said microphones is sensitive to ultrasonic frequencies. - a circuit for dispensing coffee having an inlet for that can be hydraulically connected to a water supply line and comprising: - a pump suitable to put under pressure water arriving from the supply line; - a first boiler directly or indirectly hydraulically associated to said pump and comprising at least a first electric heating element; - at least one dispensing group (107, 108) hydraulically associated to said first boiler, controlled by a respective first solenoid valve; - a pump suitable to put under pressure water arriving from the supply line; - a first boiler directly or indirectly hydraulically associated to said pump and comprising at least a first electric heating element; - at least one dispensing group (107, 108) hydraulically associated to said first boiler, controlled by a respective first solenoid valve; - a power switch device configured to permit or to prevent the passage of electric power toward said first electric heating element; - a central processing and control unit configured to control at least said circuit for dispensing coffee; - a communication interface connected to said central processing and control unit and configured to connect with a telecommunications network; - a sensor system for the detection of parameters related to possible operation anomalies or failures of said coffee machine provided inside said main body, said sensor system comprising one or more omnidirectional microphones arranged inside the main body; - a peripheral processing unit at least connected to the sensor system and configured to carry out a first local processing of the data detected by the sensors (12, 13) and to send the locally processed data to one or more remote server by the communication interface