New script for using relay board and ac motor instead of dc motor