Connect to electricity

  • Is it possible to produce a sensor that could be plugged directly into a socket? Currently, I assume to attach next to the socket and connect a small cable with the adapter in the socket. Is there a cable with the sensor and would such a permanent power supply work? The socket is classically at the bottom, can the sensor be 30 cm high or is a height recommended?