A machining unit for a program-controlled machine tool. In particular, a spindle device for a program-controlled machine tool including a spindle housing; a working spindle which is mounted in the spindle housing in a rotatable manner about a spindle axis and which includes a clamping device for clamping a tool interface that is inserted in a tool receiving section of the spindle device and is configured to hold a milling or boring tool; and a sensor device which is arranged on the spindle housing and which includes at least one structure-borne sound sensor configured to detect structure-borne sounds or vibrations occurring during grinding operations.