2N2222A by Texas Instruments is a small signal NPN bipolar junction transistor (BJT) with a max collector-emitter voltage of 40V and a max collector current of 0.8A. It is commonly used for switching applications due to its fast turn on/off times (35ns/285ns) and high transition frequency (300MHz).
DS18B20 by Maxim Integrated is a 12-bit digital temperature sensor with 1-Wire interface. It operates b/w -55 to 125°C, with ±0.5°C accuracy. Commonly used in applications requiring precise temperature monitoring like HVAC systems and industrial automation.