You need to get smartmontools to run smartctl command:
apt install smartmontools
or
compile from source
git clone https://github.com/smartmontools/smartmontools.git
cd smartmontools/smartmontools
./autogen.sh
./configure --with-nvme-devicescan
make
sudo make install
Before downloading and running the script you can check the script hash:

wget -qO- https://diskcheck.co/smart.sh | md5sum | awk '{print $1}'
3d2eb2f3516bc1b3eb2ba1357de9dc29

wget -qO- https://diskcheck.co/smart-test.sh | md5sum | awk '{print $1}'
6bc155992975d2a50046d0ad2cb6b7c4
Before downloading and running the script you can check if script verification was successful:

wget -qO- https://diskcheck.co/smart.sh | [[ "$(md5sum | awk '{print $1}')" = "3d2eb2f3516bc1b3eb2ba1357de9dc29" ]] && echo "Verification of script was successful." || echo "Verification of script failed."

wget -qO- https://diskcheck.co/smart-test.sh | [[ "$(md5sum | awk '{print $1}')" = "6bc155992975d2a50046d0ad2cb6b7c4" ]] && echo "Verification of script was successful." || echo "Verification of script failed."
Downloading and running the script:
wget -qO- https://diskcheck.co/smart.sh | sh
Before each run of script smart.sh you should also short test your disk(s):
wget -qO- https://diskcheck.co/smart-test.sh | sh
This script will verify if the hash of script smart.sh is correct and only then will run smart.sh (you need to manually download verify-and-run.sh and smart.sh, because each time we update smart.sh the hash will change):
wget -qO- https://diskcheck.co/verify-and-run.sh | sh
Run cron once a day:
crontab -e
0 0 * * * wget -qO- https://diskcheck.co/smart.sh | sh && wget -qO- https://diskcheck.co/smart-test.sh | sh
Latest 45 S.M.A.R.T data:
2022-10-07 19:00:03.2095460040 e07114f93c29db6b46c4683637beafdefa2a23d3048cbdb61f3e6d9d97b2547e/_dev_sda/365
2022-10-07 19:00:02.5695562120 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/4642
2022-10-07 18:00:08.9338218960 edb18ba21eb6f9431b15d3ddbdd7da3ad58b609cc467feeb3546f14d2b74b277/_dev_sdb/208
2022-10-07 18:00:07.5658094040 afccecfeb3442a9378f920da3c2f50bdad6191b9c52226468f7fbe3c0f01c507/_dev_sdb/204
2022-10-07 18:00:05.2297880340 752d20149d7550c029aede4c0805320d401a1e8ccea426dbc78e57799de1f02f/_dev_sdb/174
2022-10-07 18:00:04.8897849350 c325b9c74aa7431d6a1fe4065c4bbfed0376ca33ef81620cc47b6eaf2b9cb3a9/_dev_sdb/209
2022-10-07 18:00:04.5777820890 afccecfeb3442a9378f920da3c2f50bdad6191b9c52226468f7fbe3c0f01c507/_dev_sda/205
2022-10-07 18:00:03.4697719300 752d20149d7550c029aede4c0805320d401a1e8ccea426dbc78e57799de1f02f/_dev_sda/173
2022-10-07 18:00:03.0777683420 c325b9c74aa7431d6a1fe4065c4bbfed0376ca33ef81620cc47b6eaf2b9cb3a9/_dev_sda/209
2022-10-07 18:00:03.0657682320 edb18ba21eb6f9431b15d3ddbdd7da3ad58b609cc467feeb3546f14d2b74b277/_dev_sda/211
2022-10-07 18:00:02.7017648970 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/4641
2022-10-07 18:00:02.6377643120 e07114f93c29db6b46c4683637beafdefa2a23d3048cbdb61f3e6d9d97b2547e/_dev_sda/364
2022-10-07 17:00:02.8618795080 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/4640
2022-10-07 16:00:07.5798735950 afccecfeb3442a9378f920da3c2f50bdad6191b9c52226468f7fbe3c0f01c507/_dev_sdb/203
2022-10-07 16:00:06.1558684340 752d20149d7550c029aede4c0805320d401a1e8ccea426dbc78e57799de1f02f/_dev_sdb/173
2022-10-07 16:00:04.8558637000 c325b9c74aa7431d6a1fe4065c4bbfed0376ca33ef81620cc47b6eaf2b9cb3a9/_dev_sdb/208
2022-10-07 16:00:04.4878623630 afccecfeb3442a9378f920da3c2f50bdad6191b9c52226468f7fbe3c0f01c507/_dev_sda/204
2022-10-07 16:00:04.0718608530 752d20149d7550c029aede4c0805320d401a1e8ccea426dbc78e57799de1f02f/_dev_sda/172
2022-10-07 16:00:03.1838576300 c325b9c74aa7431d6a1fe4065c4bbfed0376ca33ef81620cc47b6eaf2b9cb3a9/_dev_sda/208
2022-10-07 16:00:03.0878572800 e07114f93c29db6b46c4683637beafdefa2a23d3048cbdb61f3e6d9d97b2547e/_dev_sda/363
2022-10-07 16:00:02.8918565690 edb18ba21eb6f9431b15d3ddbdd7da3ad58b609cc467feeb3546f14d2b74b277/_dev_sdb/207
2022-10-07 16:00:02.3958547670 edb18ba21eb6f9431b15d3ddbdd7da3ad58b609cc467feeb3546f14d2b74b277/_dev_sda/210
2022-10-07 16:00:02.2958544050 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/4639
2022-10-07 15:00:02.4564297670 e07114f93c29db6b46c4683637beafdefa2a23d3048cbdb61f3e6d9d97b2547e/_dev_sda/362
2022-10-07 15:00:02.3644291170 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/4638
2022-10-07 14:00:17.3300861240 edb18ba21eb6f9431b15d3ddbdd7da3ad58b609cc467feeb3546f14d2b74b277/_dev_sdb/206
2022-10-07 14:00:08.2580144990 afccecfeb3442a9378f920da3c2f50bdad6191b9c52226468f7fbe3c0f01c507/_dev_sdb/202
2022-10-07 14:00:06.7140022860 edb18ba21eb6f9431b15d3ddbdd7da3ad58b609cc467feeb3546f14d2b74b277/_dev_sda/209
2022-10-07 14:00:05.8659955810 c325b9c74aa7431d6a1fe4065c4bbfed0376ca33ef81620cc47b6eaf2b9cb3a9/_dev_sdb/207
2022-10-07 14:00:05.5539931120 afccecfeb3442a9378f920da3c2f50bdad6191b9c52226468f7fbe3c0f01c507/_dev_sda/203
2022-10-07 14:00:05.0459890940 752d20149d7550c029aede4c0805320d401a1e8ccea426dbc78e57799de1f02f/_dev_sdb/172
2022-10-07 14:00:03.7179785860 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/4637
2022-10-07 14:00:03.6899783640 c325b9c74aa7431d6a1fe4065c4bbfed0376ca33ef81620cc47b6eaf2b9cb3a9/_dev_sda/207
2022-10-07 14:00:03.1979744710 752d20149d7550c029aede4c0805320d401a1e8ccea426dbc78e57799de1f02f/_dev_sda/171
2022-10-07 13:00:07.9160958050 e07114f93c29db6b46c4683637beafdefa2a23d3048cbdb61f3e6d9d97b2547e/_dev_sda/361
2022-10-07 13:00:02.8360581360 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/4636
2022-10-07 12:00:17.5411629710 edb18ba21eb6f9431b15d3ddbdd7da3ad58b609cc467feeb3546f14d2b74b277/_dev_sdb/205
2022-10-07 12:00:12.0011377930 edb18ba21eb6f9431b15d3ddbdd7da3ad58b609cc467feeb3546f14d2b74b277/_dev_sda/208
2022-10-07 12:00:06.8891145770 afccecfeb3442a9378f920da3c2f50bdad6191b9c52226468f7fbe3c0f01c507/_dev_sdb/201
2022-10-07 12:00:06.3611121830 752d20149d7550c029aede4c0805320d401a1e8ccea426dbc78e57799de1f02f/_dev_sdb/171
2022-10-07 12:00:05.8091096990 c325b9c74aa7431d6a1fe4065c4bbfed0376ca33ef81620cc47b6eaf2b9cb3a9/_dev_sdb/206
2022-10-07 12:00:04.5331039000 afccecfeb3442a9378f920da3c2f50bdad6191b9c52226468f7fbe3c0f01c507/_dev_sda/202
2022-10-07 12:00:04.3771031930 752d20149d7550c029aede4c0805320d401a1e8ccea426dbc78e57799de1f02f/_dev_sda/170
2022-10-07 12:00:04.0931019060 c325b9c74aa7431d6a1fe4065c4bbfed0376ca33ef81620cc47b6eaf2b9cb3a9/_dev_sda/206
2022-10-07 12:00:03.3250984360 e07114f93c29db6b46c4683637beafdefa2a23d3048cbdb61f3e6d9d97b2547e/_dev_sda/360