A library packages code, examples, and metadata for a device or protocol. In Arduino IDE 2, prefer trusted libraries that explicitly support the target…