In a powder formulation for use in a dry powder inhaler, a pharmaceutical acts as its own carrier, so that use of lactose or other excipients are not needed. The sensor device comprises at least one sensor provided for repeatedly measuring the content of at least one chemical substance in the fodder, which is affected by the fermentation process. A spacer layer is formed over the stop layer in the periphery region.