Usually the easiest way is a pressure mat. People use these for both beds and couches. (Samsung even announced one at one point, but it never made it out of the beta phase.)
The Nokia (formerly Withings) has an IFTTT channel and is probably the most popular.
You can also use a regular pressure mat. See the following thread: