This is a modification of the code found here: (https://www.thingiverse.com/thing:1046664) I enabled the ability to…