Arduino library for event management