We have been mounting electronics in and on Aircraft to Spacecraft to watercraft to hand held devices for decades.
Sensors, including there Layout and design, range from Optical SO2 Air Quality to Sonar arrays.
Packaging (the box around the electrical stuff) range from hand held sensors to "Black Boxes" to mainframe units requiring sophisticated refrigerated cooling.