in addition to the CPU there is RAM, ROM, that is, in a chip integrated the entire computer system, you can directly add simple peripheral devices (resistors, capacitors) can run the code.
CPU https://plcmicro.com/sensors/
MPU https://plcmicro.com/sensors/
MCU https://plcmicro.com/sensors/

image