Here is a block diagram of a generic (wireless) sensor module, based on a microprocessor.

Block diagram