The further away from your modem you are, the more likely you are to experience a weaker WiFi signal.
Try positioning your modem in a central area of your house away from obstacles such as walls or other home appliances.
For more tips, check out ‘How do I fix my slow Wifi’