Unfortunately, the open source tools have many difficulties which one starts seeing as one progresses inside the tool. Without any support it is almost impossible to make progress on our own.
At our university we use a combination of NetSim and MATLAB.
Try to use this: https://www.youtube.com/watch?v=Qm-LdSY66PQ, but I think you also can use the simulator in link: https://github.com/ivanzy/SenSE-Sensor-Simulation-Environment
It depends on the network that you are going to simulate. There are different models for IoT networks in ns-3 as an open-source option. But for commercial simulators, you may try NetSim which has its own IoT libraries along with WSN.
MatLab along with Simulink can provide many functions for signal and image processing, optimization techniques, and machine learning in IoT. Many codes are available online and can be modified as per our requirements. Integration of codes from other software can also be done in MatLab.