I will change and go into more detail later. The lines about needing a dialog, I am copying and pasting into my blog post here for now. This link was where I started but I could not get things to work without changing some of the steps. Now that you are looking to write a Skyrim mod, there will be some assumed knowledge in this tutorial. Modding is an advanced topic even without SexLab.
I have recently learned by asking other modders that some develop in Skyrim LE and convert their mods to Skyrim SE. Skyrim came out in November of 2011 and many guides are way outdated making them hard to follow with all the new Skyrim updates.
I am writing this December of 2020 and almost January 2021. Notice: The following is for 18++ years of age or older.