The most likely reason you’re here is to find the recipe for a bed in minecraft, in order to save you some time, here it is: 3 wool, and 3 wooden planks placed as such:
It used to be that monsters could wake you up if there was a dark space anywhere within two spaces of the bed, but that’s changed in recent versions, now you can’t sleep if there is a monster within ten spaces of your bed. I recommend either digging down ten spaces, and building your bedroom in a bunker (with a ladder, as pictured above), or creating an up-stairs bedroom to your house. This will make it so that it’s impossible for a monster to be within ten spaces of your bed, or at least very unlikely.
Making the bed is fairly easy, but you’ll want some shears to get the wool, as it’s much faster than hoping the sheep drop some when they die. You can make shears with two iron, without even a crafting table. One iron in the bottom left, the other in the top right. Right clicking on a sheep with shears equipped will produce anywhere from 1–4 wool blocks, alternatively you could wander into an abandoned mine with shears equipped, and right-click on 12 spider-webs, producing 12 strings, which by placing four at a time (in a square) into your crafting screen you can produce wool. Of course this also means you could acquire wool by killing spiders as well. I’m assuming you know how to acquire the wood, as this is the single most basic thing you can do in minecraft with the exception of moving dirt around.
At any rate, you may now place your bed, and right-click to sleep in it! You may only sleep at night, and as mentioned above, only if there are no monsters within ten blocks. Sleeping in a bed will set your respawn position to that location, so you will appear there if you should die. This is very useful, particularly if you move around a lot like I do.