The code from all blog posts made by Same Day Rules is shared here. You are free to use it under the terms of the license for this repository.
Code from blog post Using the Relay Module Interface Board.
Code from the blog post Using the Voltage Level Shifter Board